From ecac6ab9fa14957e01bbafa038f910a42fe4fd4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Delattre?= Date: Wed, 26 Feb 2020 13:04:07 +0100 Subject: [PATCH] Update the CI versions of go and alpine --- .drone.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3460631..4c6eaca 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,26 +3,26 @@ name: default steps: - name: prepare-workdir - image: alpine:3.11.0 + image: alpine:3.11.3 commands: - mkdir canapeapp - name: frontend - image: node:13.5.0 + image: node:13.8.0 commands: - npm install yarn - yarn install - yarn build - name: backend - image: golang:1.13.5 + image: golang:1.14.0-alpine3.11 commands: - GO111MODULE=off go get -tags 'postgres' -u github.com/golang-migrate/migrate/cmd/migrate - cp $$GOPATH/bin/migrate migrate - - go build -v -o canapeapp/app backend/*.go + - CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' -trimpath -v -o canapeapp/app backend/*.go - name: prepare-docker - image: alpine:3.11.0 + image: alpine:3.11.3 commands: - cp docker/run.sh canapeapp/run.sh - cp migrate canapeapp/migrate