-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
30 lines (26 loc) · 947 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
image: public.ecr.aws/g4a0y2u8/node-awscli-docker:latest-v20
stages:
- build
variables:
DOCKER_HOST: "tcp://docker:2375" # Used for docker:dind inside kubernetes cicd runner
KUBECONFIG: "/.kube-config" # Used for docker:dind inside kubernetes cicd runner
DOCKER_TLS_CERTDIR: "" # Used for docker:dind inside kubernetes cicd runner
IMAGE_NAME_PROD: unifie-store
PROJECT_IMAGE_NAME: unifie-store
.base-script:
before_script:
- echo "In $CI_COMMIT_BRANCH brunch"
- |
export TAG_BRANCH_TYPE="test"
if [[ $CI_COMMIT_BRANCH == "production" ]]; then
export TAG_BRANCH_TYPE="production"
fi
if [[ $CI_COMMIT_BRANCH == "main" ]]; then
export TAG_BRANCH_TYPE="production"
fi
if [[ $CI_COMMIT_BRANCH == "staging" ]]; then
export TAG_BRANCH_TYPE="staging"
fi
- export IMAGE_TAG_ID="$TAG_BRANCH_TYPE-$CI_PIPELINE_ID"
include:
- local: .gitlab-ci-builds.yml