-
Notifications
You must be signed in to change notification settings - Fork 2
/
.werf.yaml
54 lines (53 loc) · 1.33 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
configVersion: 1
project: "core"
---
image: builder
from: golang:1.20-alpine
docker:
WORKDIR: /go/src/github.com/rarimo/rarimo-core
git:
- add: /
to: /go/src/github.com/rarimo/rarimo-core
stageDependencies:
install:
- go.mod
- go.sum
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/*
- cd /go/src/github.com/rarimo/rarimo-core
- go mod tidy
- go mod vendor
- go install cosmossdk.io/tools/cosmovisor/cmd/[email protected]
- cp $GOPATH/bin/cosmovisor /usr/local/bin/cosmovisor
setup:
- export GOPRIVATE=github.com/*
- export GONOSUMDB=github.com/*
- export GONOPROXY=github.com/*
- export CGO_ENABLED=1
- export GO111MODULE=on
- export GOOS=linux
- cd /go/src/github.com/rarimo/rarimo-core
- go build -o /usr/local/bin/rarimo-core /go/src/github.com/rarimo/rarimo-core/cmd/rarimo-cored
---
image: service
from: alpine:3.9
docker:
ENTRYPOINT: rarimo-core
shell:
setup:
- apk add --no-cache ca-certificates
import:
- image: builder
add: /usr/local/bin/rarimo-core
to: /usr/local/bin/rarimo-core
after: setup
- image: builder
add: /usr/local/bin/cosmovisor
to: /usr/local/bin/cosmovisor
after: setup