CI: Force docker image version
This commit is contained in:
parent
deb66f4279
commit
86f05f163a
36
.drone.yml
36
.drone.yml
|
@ -9,7 +9,7 @@ platform:
|
|||
|
||||
steps:
|
||||
- name: frontend
|
||||
image: node:lts-alpine
|
||||
image: node:14-alpine
|
||||
commands:
|
||||
- apk --no-cache add python2 build-base tar
|
||||
- yarn config set network-timeout 100000
|
||||
|
@ -53,7 +53,7 @@ steps:
|
|||
- tag
|
||||
|
||||
- name: backend-commit
|
||||
image: golang:alpine
|
||||
image: golang:1-alpine
|
||||
commands:
|
||||
- sed -i '/yarn --offline build/d' ui/assets.go
|
||||
- go generate -v
|
||||
|
@ -66,7 +66,7 @@ steps:
|
|||
- tag
|
||||
|
||||
- name: backend-tag
|
||||
image: golang:alpine
|
||||
image: golang:1-alpine
|
||||
commands:
|
||||
- sed -i '/yarn --offline build/d' ui/assets.go
|
||||
- go generate -v
|
||||
|
@ -78,7 +78,7 @@ steps:
|
|||
- tag
|
||||
|
||||
- name: vet
|
||||
image: golang:alpine
|
||||
image: golang:1-alpine
|
||||
commands:
|
||||
- apk --no-cache add build-base
|
||||
- go vet -v
|
||||
|
@ -120,7 +120,7 @@ steps:
|
|||
- tag
|
||||
|
||||
- name: build-commit macOS
|
||||
image: golang:alpine
|
||||
image: golang:1-alpine
|
||||
commands:
|
||||
- go build -v -tags netgo -ldflags '-w -X main.version="${DRONE_BRANCH}-${DRONE_COMMIT}" -X main.build=${DRONE_BUILD_NUMBER}' -o happydns-darwin-${DRONE_STAGE_ARCH}
|
||||
environment:
|
||||
|
@ -133,7 +133,7 @@ steps:
|
|||
- tag
|
||||
|
||||
- name: build-tag macOS
|
||||
image: golang:alpine
|
||||
image: golang:1-alpine
|
||||
commands:
|
||||
- go build -v -tags netgo -ldflags '-w -X main.version="${DRONE_TAG##v}" -X main.build=${DRONE_BUILD_NUMBER}' -o happydns-darwin-${DRONE_STAGE_ARCH}
|
||||
environment:
|
||||
|
@ -206,7 +206,7 @@ platform:
|
|||
|
||||
steps:
|
||||
- name: frontend
|
||||
image: node:lts-alpine
|
||||
image: node:14-alpine
|
||||
commands:
|
||||
- apk --no-cache add python2 build-base
|
||||
- yarn config set network-timeout 100000
|
||||
|
@ -214,7 +214,7 @@ steps:
|
|||
- yarn --cwd ui --offline build
|
||||
|
||||
- name: backend-commit
|
||||
image: golang:alpine
|
||||
image: golang:1-alpine
|
||||
commands:
|
||||
- sed -i '/yarn --offline build/d' ui/assets.go
|
||||
- go generate -v
|
||||
|
@ -228,7 +228,7 @@ steps:
|
|||
- tag
|
||||
|
||||
- name: backend-tag
|
||||
image: golang:alpine
|
||||
image: golang:1-alpine
|
||||
commands:
|
||||
- sed -i '/yarn --offline build/d' ui/assets.go
|
||||
- go generate -v
|
||||
|
@ -275,7 +275,7 @@ steps:
|
|||
- tag
|
||||
|
||||
- name: build-commit macOS
|
||||
image: golang:alpine
|
||||
image: golang:1-alpine
|
||||
commands:
|
||||
- go build -v -tags netgo -ldflags '-w -X main.version="${DRONE_BRANCH}-${DRONE_COMMIT}" -X main.build=${DRONE_BUILD_NUMBER}' -o happydns-darwin-${DRONE_STAGE_ARCH}
|
||||
environment:
|
||||
|
@ -288,7 +288,7 @@ steps:
|
|||
- tag
|
||||
|
||||
- name: build-tag macOS
|
||||
image: golang:alpine
|
||||
image: golang:1-alpine
|
||||
commands:
|
||||
- go build -v -tags netgo -ldflags '-w -X main.version="${DRONE_TAG##v}" -X main.build=${DRONE_BUILD_NUMBER}' -o happydns-darwin-${DRONE_STAGE_ARCH}
|
||||
environment:
|
||||
|
@ -362,7 +362,7 @@ platform:
|
|||
|
||||
steps:
|
||||
- name: frontend
|
||||
image: node:lts-alpine
|
||||
image: node:14-alpine
|
||||
commands:
|
||||
- apk --no-cache add python2 build-base
|
||||
- yarn config set network-timeout 100000
|
||||
|
@ -370,7 +370,7 @@ steps:
|
|||
- yarn --cwd ui --offline build
|
||||
|
||||
- name: backend-commit armel
|
||||
image: golang:alpine
|
||||
image: golang:1-alpine
|
||||
commands:
|
||||
- apk --no-cache add build-base
|
||||
- sed -i '/yarn --offline build/d' ui/assets.go
|
||||
|
@ -385,7 +385,7 @@ steps:
|
|||
- tag
|
||||
|
||||
- name: backend-tag armel
|
||||
image: golang:alpine
|
||||
image: golang:1-alpine
|
||||
commands:
|
||||
- apk --no-cache add build-base
|
||||
- sed -i '/yarn --offline build/d' ui/assets.go
|
||||
|
@ -433,7 +433,7 @@ steps:
|
|||
- tag
|
||||
|
||||
- name: backend-commit armhf
|
||||
image: golang:alpine
|
||||
image: golang:1-alpine
|
||||
commands:
|
||||
- apk --no-cache add build-base
|
||||
- go build -v -tags netgo -ldflags '-w -X main.version="${DRONE_BRANCH}-${DRONE_COMMIT}" -X main.build=${DRONE_BUILD_NUMBER}' -o happydns-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}hf
|
||||
|
@ -446,7 +446,7 @@ steps:
|
|||
- tag
|
||||
|
||||
- name: backend-tag armhf
|
||||
image: golang:alpine
|
||||
image: golang:1-alpine
|
||||
commands:
|
||||
- apk --no-cache add build-base
|
||||
- go build -v -tags netgo -ldflags '-w -X main.version="${DRONE_TAG##v}" -X main.build=${DRONE_BUILD_NUMBER}' -o happydns-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}hf
|
||||
|
@ -492,7 +492,7 @@ steps:
|
|||
- tag
|
||||
|
||||
- name: backend-commit armv7
|
||||
image: golang:alpine
|
||||
image: golang:1-alpine
|
||||
commands:
|
||||
- apk --no-cache add build-base
|
||||
- go build -v -tags netgo -ldflags '-w -X main.version="${DRONE_BRANCH}-${DRONE_COMMIT}" -X main.build=${DRONE_BUILD_NUMBER}' -o happydns-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}v7
|
||||
|
@ -506,7 +506,7 @@ steps:
|
|||
- tag
|
||||
|
||||
- name: backend-tag armv7
|
||||
image: golang:alpine
|
||||
image: golang:1-alpine
|
||||
commands:
|
||||
- apk --no-cache add build-base
|
||||
- go build -v -tags netgo -ldflags '-w -X main.version="${DRONE_TAG##v}" -X main.build=${DRONE_BUILD_NUMBER}' -o happydns-${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}v7
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM node:lts-alpine as nodebuild
|
||||
FROM node:14-alpine as nodebuild
|
||||
|
||||
WORKDIR /go/src/git.happydns.org/happydns
|
||||
|
||||
|
@ -11,7 +11,7 @@ RUN yarn --cwd ui install
|
|||
RUN yarn --cwd ui --offline build
|
||||
|
||||
|
||||
FROM golang:alpine as gobuild
|
||||
FROM golang:1-alpine as gobuild
|
||||
|
||||
RUN apk add --no-cache go-bindata
|
||||
|
||||
|
|
Loading…
Reference in New Issue