Enable drone CI
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Jan Bader 2021-12-28 16:14:58 +00:00
parent ed361324dd
commit ed9e75d57a
3 changed files with 33 additions and 0 deletions

27
.drone.yml Normal file
View File

@ -0,0 +1,27 @@
---
kind: pipeline
type: docker
name: budgeteer
steps:
- name: Taskfile.dev
image: hub.javil.eu/budgeteer:dev
commands:
- task build
- name: docker
image: plugins/docker
settings:
registry: hub.javil.eu
username:
from_secret: docker_user
password:
from_secret: docker_password
repo: hub.javil.eu/budgeteer
context: build
dockerfile: build/Dockerfile
tags:
- latest
image_pull_secrets:
- hub.javil.eu

3
Dockerfile.dev Normal file
View File

@ -0,0 +1,3 @@
FROM golang:1.17
RUN go install github.com/kyleconroy/sqlc/cmd/sqlc@latest
RUN go install github.com/go-task/task/v3/cmd/task@latest

3
build/Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM scratch
COPY ./budgeteer /app/budgeteer
ENTRYPOINT ["/app/budgeteer"]