Skip to content

Commit a21d57d

Browse files
ci(docker): Fix GHCR releases so they are multiarch (#2418)
Our current release process for GHCR makes the images tagged with the version number and "latest" only be single-arch images, rather than keeping them as multi-arch images. This change _should_ fix this behavior.
1 parent b88d274 commit a21d57d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/release-ghcr-latest-tag.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717

1818
- name: Tag latest version
1919
run: |
20-
docker pull ghcr.io/getsentry/sentry-cli:${{ github.sha }}
21-
docker tag ghcr.io/getsentry/sentry-cli:${{ github.sha }} ghcr.io/getsentry/sentry-cli:latest
22-
docker push ghcr.io/getsentry/sentry-cli:latest
20+
docker buildx imagetools create \
21+
-t ghcr.io/getsentry/sentry-cli:latest \
22+
ghcr.io/getsentry/sentry-cli:${{ github.sha }}

.github/workflows/release-ghcr-version-tag.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717

1818
- name: Tag release version
1919
run: |
20-
docker pull ghcr.io/getsentry/sentry-cli:${{ github.sha }}
21-
docker tag ghcr.io/getsentry/sentry-cli:${{ github.sha }} ghcr.io/getsentry/sentry-cli:${{ github.ref_name }}
22-
docker push ghcr.io/getsentry/sentry-cli:${{ github.ref_name }}
20+
docker buildx imagetools create \
21+
-t ghcr.io/getsentry/sentry-cli:${{ github.ref_name }} \
22+
ghcr.io/getsentry/sentry-cli:${{ github.sha }}

0 commit comments

Comments
 (0)