forked from ssvlabs/ssv-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
31 lines (24 loc) · 830 Bytes
/
.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
stages:
- build
variables:
#STAGE
ACCOUNT_ID_INFRA_STAGE: 121827225315
AWS_REGION_INFRA_STAGE: "us-west-2"
#blox-infra-stage
Build stage Docker image:
stage: build
tags:
- blox-infra-stage
script:
- docker build --build-arg BUILD_ENV=staging --build-arg S3_BUCKET=$STAGE_S3_BUCKET --build-arg AWS_ACCESS_KEY_ID=$STAGE_AWS_ACCESS_KEY_ID --build-arg AWS_SECRET_ACCESS_KEY=$STAGE_AWS_SECRET_ACCESS_KEY -t test-build -f Dockerfile .
only:
- stage
#blox-infra-prod
Build prod Docker image:
stage: build
tags:
- blox-infra-prod
script:
- docker build --build-arg BUILD_ENV=production --build-arg S3_BUCKET=$PROD_S3_BUCKET --build-arg AWS_ACCESS_KEY_ID=$PROD_AWS_ACCESS_KEY_ID --build-arg AWS_SECRET_ACCESS_KEY=$PROD_AWS_SECRET_ACCESS_KEY -t test-build -f Dockerfile .
only:
- main