Skip to content

Commit fb25962

Browse files
committed
Optional storage params
1 parent c988a02 commit fb25962

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

dataops/aws/cicd_template.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
variables:
2+
GITLAB_CICD_IMAGE_REPO: gcr.io/getindata-images-public/cicd-dataops
3+
GITLAB_CICD_IMAGE_TAG: aws-0.5.7
4+
BLOB_CONFIG_PATH: blob_args.json
5+
6+
dev:
7+
image: $GITLAB_CICD_IMAGE_REPO:$GITLAB_CICD_IMAGE_TAG
8+
environment: DEVELOPMENT
9+
stage: execute-dev
10+
extends:
11+
- .dev_setup
12+
script:
13+
- dp compile --docker-build --env dev
14+
- dp deploy --env dev --docker-push --bi-git-key-path ${LOOKER_REPO_KEY:-unused} --auth-token ${GCP_OIDC_TOKEN:-unused}
15+
rules:
16+
- if: '$CI_COMMIT_BRANCH != "master"'
17+
- if: '$CI_COMMIT_BRANCH != "main"'
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ dev:
1111
- .dev_setup
1212
script:
1313
- dp compile --docker-build --env dev
14-
- [[ ! -z "$BLOB_CONFIG_PATH" ]] && storage_params+="--blob-args $BLOB_CONFIG_PATH"
15-
- dp deploy --env dev "${storage_params[@]}" --docker-push --bi-git-key-path ${LOOKER_REPO_KEY:-unused} --auth-token ${GCP_OIDC_TOKEN:-unused}
14+
- dp deploy --env dev --blob-args $BLOB_CONFIG_PATH --docker-push --bi-git-key-path ${LOOKER_REPO_KEY:-unused} --auth-token ${GCP_OIDC_TOKEN:-unused}
1615
rules:
1716
- if: '$CI_COMMIT_BRANCH != "master"'
1817
- if: '$CI_COMMIT_BRANCH != "main"'

0 commit comments

Comments
 (0)