28 lines
449 B
YAML
28 lines
449 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
pull: if-not-exists
|
|
image: golang:1.20
|
|
commands:
|
|
- go test ./...
|
|
|
|
- name: build
|
|
pull: if-not-exists
|
|
image: golang:1.20
|
|
commands:
|
|
- GOOS=linux GOARCH=amd64 go build -o butler cmd/butler/main.go
|
|
|
|
# TODO:
|
|
# scp bin, Dockerfile, docker-compose
|
|
# create .env from secrets
|
|
# run migrations
|
|
# restart container
|
|
|
|
trigger:
|
|
event:
|
|
- push
|