Skip to content

Commit

Permalink
Add SSH key caching from secret manager (openconfig#2748)
Browse files Browse the repository at this point in the history
  • Loading branch information
bstoll authored Mar 1, 2024
1 parent 8862985 commit 7ef52bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cloudbuild/virtual.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
steps:
- id: fetch-secrets
name: gcr.io/cloud-builders/gcloud
script: |
gcloud secrets versions access latest --secret=featureprofiles-ci-ssh > builder-key
gcloud secrets versions access latest --secret=featureprofiles-ci-ssh-pub > builder-key.pub
- id: fp-presubmit
name: gcr.io/${PROJECT_ID}/remote-builder
waitFor: ["-"]
env:
- USERNAME=user
- SSH_ARGS=--internal-ip --ssh-key-expire-after=1d
- SSH_ARGS=--internal-ip
- INSTANCE_NAME=fp-presubmit-${BUILD_ID}
- INSTANCE_ARGS=--network cloudbuild-workers --image-project gep-kne --image-family kne --machine-type ${_MACHINE_TYPE} ${_MACHINE_ARGS} --boot-disk-size 200GB [email protected] --scopes=default,compute-rw
- ZONE=us-west1-a
Expand Down

0 comments on commit 7ef52bc

Please sign in to comment.