-
Notifications
You must be signed in to change notification settings - Fork 21
/
.gitlab-ci.yml
38 lines (36 loc) · 1.23 KB
/
.gitlab-ci.yml
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
stages:
- cloudbuild
cloudbuild:rust-artifact:
stage: cloudbuild
only:
- master
variables:
CONFIG_BUILDER: gcr.io/dexpa-175115/rust/rust-builder:v1.64.0
BINARY_NAME: ton-wallet-api
CONFIG_APPLICATION: ton-wallet-api
CONFIG_GROUP: ton
IMAGE_NAME: gcr.io/broxus/ton/ton-wallet-api/ton-wallet-api
BUILD: test
before_script:
- export COMMIT_TIME=$(git show -s --format=%ct $CI_COMMIT_SHA)
- export IMAGE_VERSION=$CI_COMMIT_REF_SLUG/$COMMIT_TIME
- envsubst < cloudbuild-template.yaml > cloudbuild.yaml
script:
- gcloud builds submit --machine-type=n1-highcpu-8 --config cloudbuild.yaml .
cloudbuild:rust-artifact-prod:
stage: cloudbuild
only:
- prod
variables:
CONFIG_BUILDER: gcr.io/dexpa-175115/rust/rust-builder:v1.64.0
BINARY_NAME: ton-wallet-api
CONFIG_APPLICATION: ton-wallet-api
CONFIG_GROUP: ton
IMAGE_NAME: gcr.io/broxus/ton/ton-wallet-api/ton-wallet-api
BUILD: prod
before_script:
- export COMMIT_TIME=$(git show -s --format=%ct $CI_COMMIT_SHA)
- export IMAGE_VERSION=$CI_COMMIT_REF_SLUG/$COMMIT_TIME
- envsubst < cloudbuild-template.yaml > cloudbuild.yaml
script:
- gcloud builds submit --machine-type=n1-highcpu-8 --config cloudbuild.yaml .