Skip to content

Commit e0d8766

Browse files
fix: minor fixes for GAR deploy CircleCI jobs (#764)
This now mounts the workspace so we can load the built image from that. Also, I fixed the image name in the `gcp-gcr/push-image` step. This was tested successfully in https://app.circleci.com/pipelines/github/mozilla-services/autopush-rs/2873/workflows/9adebe2f-13e8-4e5d-a853-e78b7f6ca368
1 parent 92772f9 commit e0d8766

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.circleci/config.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,11 @@ jobs:
436436
use_oidc: true
437437
workload_identity_pool_id: GCP_OIDC_WIP_ID
438438
workload_identity_pool_provider_id: GCP_OIDC_WIP_PROVIDER_ID
439+
- attach_workspace:
440+
at: /tmp/cache
441+
- run:
442+
name: Restore Docker image cache
443+
command: docker load -i /tmp/cache/docker.tar
439444
- run:
440445
name: Tag image
441446
command: |
@@ -451,7 +456,7 @@ jobs:
451456
# push-image parameters:
452457
# https://circleci.com/developer/orbs/orb/circleci/gcp-gcr#commands-push-image
453458
- gcp-gcr/push-image:
454-
image: $GAR_IMAGE
459+
image: "${GCP_GAR_REPO}/<<parameters.image>>"
455460
google-project-id: GCP_GAR_PROJECT_ID
456461
registry-url: <<parameters.registry-url>>
457462
tag: $GAR_TAG,latest

0 commit comments

Comments
 (0)