Skip to content

Commit 3db8c72

Browse files
authored
Merge branch 'jkao97/verify-and-build-images-for-workflows' into jkao97/test-verify-and-build-images-for-workflows
2 parents 854c70a + e295fbb commit 3db8c72

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/workflow-run-docker-rust-build.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,26 @@ jobs:
113113
GCP_DOCKER_ARTIFACT_REPO: ${{ env.GCP_DOCKER_ARTIFACT_REPO }}
114114
WAIT_FOR_IMAGE_SECONDS: 1
115115

116+
- name: Setup GCloud
117+
uses: google-github-actions/setup-gcloud@v2
118+
with:
119+
install_components: 'gcloud'
120+
121+
- name: Authenticate to Google Cloud
122+
id: auth
123+
uses: "google-github-actions/auth@v2"
124+
with:
125+
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
126+
service_account: ${{ secrets.GCP_SERVICE_ACCOUNT_EMAIL }}
127+
128+
- name: Configure GCloud
129+
run: |
130+
gcloud config set project aptos-ci
131+
116132
- name: Lock File Check and Lock if not exists
117133
id: check-lock
118134
if: steps.check-images.outcome == 'failure'
119135
run: |
120-
gcloud config set account aptos-ci
121136
echo "Checking lock file"
122137
set +e
123138
gcloud storage ls gs://${{ env.GCP_DOCKER_BUILD_LOCK_BUCKET }}/${{ env.GIT_SHA }}.txt

0 commit comments

Comments
 (0)