corrects syntax
This commit is contained in:
parent
7db46dfbea
commit
cfb53b374e
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -24,7 +24,13 @@ spec:
|
|||||||
image: ${repository}/dockerhub/library/golang:latest
|
image: ${repository}/dockerhub/library/golang:latest
|
||||||
tty: true
|
tty: true
|
||||||
command:
|
command:
|
||||||
- /bin/cat
|
- /bin/sh
|
||||||
|
- name: alpine
|
||||||
|
image: ${repository}/library/alpine:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
tty: true
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
""") {
|
""") {
|
||||||
node (label) {
|
node (label) {
|
||||||
def workspace = pwd()
|
def workspace = pwd()
|
||||||
@ -112,7 +118,7 @@ RUN apk add --no-cache git upx && \\
|
|||||||
go get -d -v ./... && \\
|
go get -d -v ./... && \\
|
||||||
go install -v ./... && \\
|
go install -v ./... && \\
|
||||||
GOOG=linux GOARCH=amd64 CGO_ENABLED=0 go build -v -ldflags="-s -w" -tags timetzdata -o app ./cmd/tpapi && \\
|
GOOG=linux GOARCH=amd64 CGO_ENABLED=0 go build -v -ldflags="-s -w" -tags timetzdata -o app ./cmd/tpapi && \\
|
||||||
upx --lzma --ultra-brute app
|
upx --lzma app
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user