CI: try generating static binaries
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1445917fec
commit
3434535f51
13
.drone.yml
13
.drone.yml
@ -40,35 +40,46 @@ steps:
|
||||
commands:
|
||||
- go build -v -o deploy/admin-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/admin
|
||||
- tar chjf deploy/htdocs-admin.tar.bz2 htdocs-admin
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
|
||||
- name: build backend
|
||||
image: golang:alpine
|
||||
commands:
|
||||
- go build -v -o deploy/backend-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/backend
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
|
||||
- name: build frontend
|
||||
image: golang:alpine
|
||||
commands:
|
||||
- go build -v -o deploy/frontend-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/frontend
|
||||
- tar chjf deploy/htdocs-frontend.tar.bz2 htdocs-frontend
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
|
||||
- name: build dashboard
|
||||
image: golang:alpine
|
||||
commands:
|
||||
- go build -v -o deploy/dashboard-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/dashboard
|
||||
- tar chjf deploy/htdocs-dashboard.tar.bz2 htdocs-dashboard
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
|
||||
- name: build repochecker
|
||||
image: golang:alpine
|
||||
commands:
|
||||
- go build -v -o deploy/repochecker-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/repochecker
|
||||
- grep "const version" repochecker/update.go | sed -r 's/^.*=\s*(\S.*)$/\1/' > deploy/repochecker.version
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
|
||||
- name: build repochecker for macOS
|
||||
image: golang:alpine
|
||||
commands:
|
||||
- go build -v -o deploy/repochecker-darwin-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/repochecker
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
GOOS: darwin
|
||||
GOARCH: amd64
|
||||
|
||||
@ -77,6 +88,8 @@ steps:
|
||||
commands:
|
||||
- go build -v -o deploy/qa-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} srs.epita.fr/fic-server/qa
|
||||
- tar chjf deploy/htdocs-qa.tar.bz2 htdocs-qa
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
|
||||
- name: deploy
|
||||
image: appleboy/drone-scp
|
||||
|
Loading…
x
Reference in New Issue
Block a user