update drone pipeline
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Владимир Фёдоров 2023-08-14 03:10:45 +07:00
parent d4553d3b59
commit 2c9ac6b1ce
2 changed files with 21 additions and 5 deletions

View File

@ -27,6 +27,14 @@ go run cmd/butler/main.go
### Сборка
Для arm
```sh
GOOS=linux GOARCH=arm go build -o butler cmd/butler/main.go
```
Для x64
```sh
GOOS=linux GOARCH=amd64 go build -o butler cmd/butler/main.go
```

View File

@ -3,16 +3,24 @@ 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:
- go build -o butler cmd/butler/main.go
- GOOS=linux GOARCH=amd64 go build -o butler cmd/butler/main.go
- name: test
image: golang
commands:
- go test ./...
# TODO:
# scp bin, Dockerfile, docker-compose
# create .env from secrets
# run migrations
# restart container
trigger:
event: