Skip to content

Commit

Permalink
ref: dual-write images to artifact registry (#1460)
Browse files Browse the repository at this point in the history
gcr is deprecated and will be going away soon
  • Loading branch information
asottile-sentry committed May 9, 2024
1 parent 62c12ec commit a5122e5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ steps:
'symbolicator-build',
'-t',
'us.gcr.io/$PROJECT_ID/symbolicator:builder',
'-t',
'us-central1-docker.pkg.dev/$PROJECT_ID/symbolicator/builder:latest',
'--build-arg',
'BUILDKIT_INLINE_CACHE=1',
'--cache-from',
Expand Down Expand Up @@ -56,6 +58,10 @@ steps:
'us.gcr.io/$PROJECT_ID/symbolicator:nightly',
'-t',
'us.gcr.io/$PROJECT_ID/symbolicator:$COMMIT_SHA',
'-t',
'us-central1-docker.pkg.dev/$PROJECT_ID/symbolicator/image:nightly',
'-t',
'us-central1-docker.pkg.dev/$PROJECT_ID/symbolicator/image:$COMMIT_SHA',
'--build-arg',
'BUILDKIT_INLINE_CACHE=1',
'--cache-from',
Expand Down Expand Up @@ -83,6 +89,7 @@ steps:
# Only push to Docker Hub from master
[ "$BRANCH_NAME" != "master" ] && exit 0
docker push us.gcr.io/$PROJECT_ID/symbolicator:nightly
docker push us-central1-docker.pkg.dev/$PROJECT_ID/symbolicator/image:nightly
echo "$$DOCKER_PASSWORD" | docker login --username=sentrybuilder --password-stdin
docker tag us.gcr.io/$PROJECT_ID/symbolicator:$COMMIT_SHA getsentry/symbolicator:$SHORT_SHA
docker push getsentry/symbolicator:$SHORT_SHA
Expand All @@ -95,6 +102,8 @@ images:
[
"us.gcr.io/$PROJECT_ID/symbolicator:builder",
"us.gcr.io/$PROJECT_ID/symbolicator:$COMMIT_SHA",
"us-central1-docker.pkg.dev/$PROJECT_ID/symbolicator/builder:latest",
"us-central1-docker.pkg.dev/$PROJECT_ID/symbolicator/image:$COMMIT_SHA",
]
timeout: 3600s
options:
Expand Down

0 comments on commit a5122e5

Please sign in to comment.