update drone pipeline
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
d4553d3b59
commit
2c9ac6b1ce
|
@ -27,6 +27,14 @@ go run cmd/butler/main.go
|
||||||
|
|
||||||
### Сборка
|
### Сборка
|
||||||
|
|
||||||
|
Для arm
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
GOOS=linux GOARCH=arm go build -o butler cmd/butler/main.go
|
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
|
||||||
|
```
|
||||||
|
|
|
@ -3,16 +3,24 @@ type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
pull: if-not-exists
|
||||||
|
image: golang:1.20
|
||||||
|
commands:
|
||||||
|
- go test ./...
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: golang:1.20
|
image: golang:1.20
|
||||||
commands:
|
commands:
|
||||||
- go build -o butler cmd/butler/main.go
|
- GOOS=linux GOARCH=amd64 go build -o butler cmd/butler/main.go
|
||||||
|
|
||||||
- name: test
|
# TODO:
|
||||||
image: golang
|
# scp bin, Dockerfile, docker-compose
|
||||||
commands:
|
# create .env from secrets
|
||||||
- go test ./...
|
# run migrations
|
||||||
|
# restart container
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
|
|
Loading…
Reference in New Issue