Skip to content

Commit ae626cc

Browse files
authored
Add api key to cloud build (#1940)
1 parent fe01035 commit ae626cc

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

import-automation/executor/cloudbuild.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ steps:
5656
./run_tests.sh -a
5757
entrypoint: bash
5858
waitFor: ['push']
59-
59+
secretEnv:
60+
- DC_API_KEY
61+
6062
# Tag image as stable and push
6163
- name: 'gcr.io/cloud-builders/docker'
6264
id: 'tag'
@@ -67,3 +69,9 @@ steps:
6769
- |
6870
docker tag ${_DOCKER_IMAGE}:${COMMIT_SHA} ${_DOCKER_IMAGE}:stable \
6971
&& docker push ${_DOCKER_IMAGE}:stable
72+
73+
availableSecrets:
74+
secretManager:
75+
- versionName: projects/datcom-ci/secrets/dc-api-key/versions/latest
76+
env: DC_API_KEY
77+

0 commit comments

Comments
 (0)