forked from rarimo/evm-identity-saver-svc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
werf.yaml
41 lines (40 loc) · 1014 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
41
configVersion: 1
project: "backend"
---
image: builder
from: golang:1.19-alpine
docker:
WORKDIR: /go/src/github.com/rarimo/evm-worldcoin-saver-svc
git:
- add: /
to: /go/src/github.com/rarimo/evm-worldcoin-saver-svc
stageDependencies:
setup:
- "**/*"
shell:
install:
- apk add git build-base
- go env -w GOPRIVATE=github.com/*
- go env -w GONOSUMDB=github.com/*
- go env -w GONOPROXY=github.com/*
setup:
- export GO111MODULE=on
- export CGO_ENABLED=1
- export GOOS=linux
- cd /go/src/github.com/rarimo/evm-worldcoin-saver-svc
- go mod tidy
- go mod vendor
- go build -o /usr/local/bin/evm-worldcoin-saver-svc /go/src/github.com/rarimo/evm-worldcoin-saver-svc
---
image: service
from: alpine:3.14.6
docker:
ENTRYPOINT: evm-worldcoin-saver-svc
shell:
setup:
- apk add --no-cache ca-certificates
import:
- image: builder
add: /usr/local/bin/evm-worldcoin-saver-svc
to: /usr/local/bin/evm-worldcoin-saver-svc
after: setup