This commit is contained in:
parent
d842040eb4
commit
c6682066dd
3 changed files with 23 additions and 0 deletions
17
.drone.yml
Normal file
17
.drone.yml
Normal 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
3
Dockerfile
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
FROM alpine:3.15
|
||||||
|
COPY ./kuvia /kuvia
|
||||||
|
CMD ["/kuvia"]
|
3
Makefile
3
Makefile
|
@ -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 ./
|
Loading…
Reference in a new issue