-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwerf.yaml
38 lines (37 loc) · 1.27 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
configVersion: 1
project: "backend"
---
image: builder # Build image name.
from: golang:1.19 # Base image.
docker:
WORKDIR: /go/src/github.com/rarimo/verify-proxy
git: # Section with directives for adding source files from a git repository.
- add: / # The source path in the repository.
to: /go/src/github.com/rarimo/verify-proxy # The destination path in the image.
stageDependencies: # Configuring rebuild triggers when specific files in the repository change.
install:
- go.mod
- go.sum
setup: # For the Setup stage.
- "**/*"
shell: # Shell build instructions.
setup: # For the Setup stage.
- cd /go/src/github.com/rarimo/verify-proxy
- go build -o /usr/local/bin/verify-proxy /go/src/github.com/rarimo/verify-proxy
---
image: service # The name of the built image.
from: alpine:3.18.2 # The base image.
docker:
ENTRYPOINT: verify-proxy
shell: # Shell build instructions.
setup: # For the Setup stage.
- apk add --no-cache musl libstdc++ gcompat libgomp ca-certificates
import:
- image: builder
add: /usr/local/bin/verify-proxy
to: /usr/local/bin/verify-proxy
after: setup
- image: builder
add: /go/pkg/mod/github.com/iden3/[email protected]
to: /go/pkg/mod/github.com/iden3/[email protected]
after: setup