-
Notifications
You must be signed in to change notification settings - Fork 4
/
werf.yaml
57 lines (56 loc) · 1.69 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
configVersion: 1
project: 'backend'
---
image: builder
from: golang:1.21.6-alpine
docker:
WORKDIR: /go/src/github.com/rarimo/passport-identity-provider
git:
- add: /
to: /go/src/github.com/rarimo/passport-identity-provider
stageDependencies:
install:
- go.mod
- go.sum
setup:
- "**/*"
shell:
beforeInstall:
- apk add git build-base
install:
- git config --global url."https://gitlab-ci-token:{{ env "CI_JOB_TOKEN" }}@gitlab.com/".insteadOf https://gitlab.com/
- git config --global url."https://{{ env "CI_JOB_TOKEN" }}@github.com/".insteadOf https://github.com/
- go env -w GOPRIVATE=github.com/*,gitlab.com/*
setup:
- export CGO_ENABLED=1
- export GO111MODULE=on
- export GOOS=linux
- cd /go/src/github.com/rarimo/passport-identity-provider
- go mod tidy
- go mod vendor
- go build -o /usr/local/bin/identity-provider-service /go/src/github.com/rarimo/passport-identity-provider
---
image: service
from: alpine:3.9
docker:
ENTRYPOINT: identity-provider-service
shell:
setup:
- apk add --no-cache ca-certificates
import:
- image: builder
add: /usr/local/bin/identity-provider-service
to: /usr/local/bin/identity-provider-service
after: setup
- image: builder
add: /go/src/github.com/rarimo/passport-identity-provider/sha1_verification_key.json
to: /sha1_verification_key.json
after: setup
- image: builder
add: /go/src/github.com/rarimo/passport-identity-provider/sha256_verification_key.json
to: /sha256_verification_key.json
after: setup
- image: builder
add: /go/src/github.com/rarimo/passport-identity-provider/masterList.dev.pem
to: /masterList.dev.pem
after: setup