CI/CD
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Kekskurse 2022-01-15 00:15:05 +01:00
parent d842040eb4
commit c6682066dd
Signed by: kekskurse
GPG key ID: 728ACCB59341E7E4
3 changed files with 23 additions and 0 deletions

17
.drone.yml Normal file
View file

@ -0,0 +1,17 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: build
image: golang
commands:
- make build
- name: docker
image: plugins/docker
settings:
repo: kekskurse/ett
username: kekskurse
password:
from_secret: docker_password

3
Dockerfile Normal file
View file

@ -0,0 +1,3 @@
FROM alpine:3.15
COPY ./kuvia /kuvia
CMD ["/kuvia"]

View file

@ -3,3 +3,6 @@ setup:
sleep 30 sleep 30
./mc alias set minio http://127.0.0.1:9000 example password --api S3v4 ./mc alias set minio http://127.0.0.1:9000 example password --api S3v4
./mc mb minio/img ./mc mb minio/img
build:
CGO_ENABLED=0 GOOS=linux go build -o kuvia ./