-
Notifications
You must be signed in to change notification settings - Fork 0
/
werf.yaml
40 lines (39 loc) · 950 Bytes
/
werf.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
configVersion: 1
project: 'backend'
---
image: builder
from: golang:1.18-alpine
docker:
WORKDIR: /go/src/gitlab.com/tokene/nonce-auth-svc
git:
- add: /
to: /go/src/gitlab.com/tokene/nonce-auth-svc
stageDependencies:
setup:
- "**/*"
shell:
install:
- apk add git build-base
- git config --global url."https://gitlab-ci-token:{{ env "CI_JOB_TOKEN" }}@gitlab.com/".insteadOf https://gitlab.com/
- go env -w GOPRIVATE=gitlab.com/*
setup:
- export CGO_ENABLED=1
- export GO111MODULE=on
- export GOOS=linux
- cd /go/src/gitlab.com/tokene/nonce-auth-svc
- go mod tidy
- go mod vendor
- go build -o /usr/local/bin/nonce-auth-svc /go/src/gitlab.com/tokene/nonce-auth-svc
---
image: service
from: alpine:3.9
docker:
ENTRYPOINT: nonce-auth-svc
shell:
setup:
- apk add --no-cache ca-certificates
import:
- image: builder
add: /usr/local/bin/nonce-auth-svc
to: /usr/local/bin/nonce-auth-svc
after: setup