forked from rarimo/decentralized-auth-svc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
werf.yaml
53 lines (52 loc) · 1.26 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
configVersion: 1
project: "geo-auth-svc"
---
image: builder
from: golang:1.22-alpine
docker:
WORKDIR: /go/src/github.com/rarimo/geo-auth-svc
git:
- add: /
to: /go/src/github.com/rarimo/geo-auth-svc
stageDependencies:
install:
- go.mod
- go.sum
setup:
- "**/*"
shell:
install:
- apk add git build-base
- export CGO_ENABLED=1
- export GO111MODULE=on
- export GOOS=linux
- cd /go/src/github.com/rarimo/geo-auth-svc
- go mod tidy
- go mod vendor
setup:
- export CGO_ENABLED=1
- export GO111MODULE=on
- export GOOS=linux
- cd /go/src/github.com/rarimo/geo-auth-svc
- go build -o /usr/local/bin/geo-auth-svc /go/src/github.com/rarimo/geo-auth-svc
---
image: service
from: alpine:3.9
docker:
ENTRYPOINT: geo-auth-svc
shell:
setup:
- apk add --no-cache ca-certificates
import:
- image: builder
add: /usr/local/bin/geo-auth-svc
to: /usr/local/bin/geo-auth-svc
after: setup
- image: builder
add: /go/src/github.com/rarimo/geo-auth-svc/passport_verification_key.json
to: /passport_verification_key.json
after: setup
- image: builder
add: /go/src/github.com/rarimo/geo-auth-svc/auth_verification_key.json
to: /auth_verification_key.json
after: setup