Skip to content

Commit

Permalink
Publish CalVer tags for linux/arm64 platform builds (#564)
Browse files Browse the repository at this point in the history
The base-image, base-notebook and pangeo-notebook Docker images only had linux/amd64 platform available on the CalVer tags. Need to use the `--platform` flag when doing `docker pull` or `docker push` to explicitly tag the linux/arm64 images too.
  • Loading branch information
weiji14 committed Jul 1, 2024
1 parent 09649eb commit 7edf75a
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ jobs:
fail-fast: false
matrix:
IMAGE: [base-image, base-notebook, pangeo-notebook, ml-notebook, pytorch-notebook]
platform: [linux/amd64]
# Extra CPU architectures for specific images
include:
- IMAGE: "base-image"
platform: "linux/arm64"
- IMAGE: "base-notebook"
platform: "linux/arm64"
- IMAGE: "pangeo-notebook"
platform: "linux/arm64"
name: ${{ matrix.IMAGE }}
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -57,7 +66,7 @@ jobs:

- name: Pull Image for Corresponding GitHub Commit
run: |
docker pull ${DOCKER_ORG}/${{ matrix.IMAGE }}:${SHA7}
docker pull --platform ${{ matrix.platform }} ${DOCKER_ORG}/${{ matrix.IMAGE }}:${SHA7}
- name: Retag Images
run: |
Expand All @@ -68,10 +77,10 @@ jobs:
- name: Push Tags to Docker Hub
run: |
docker push ${DOCKER_ORG}/${{ matrix.IMAGE }}:latest
docker push ${DOCKER_ORG}/${{ matrix.IMAGE }}:${TAG}
docker push --platform ${{ matrix.platform }} ${DOCKER_ORG}/${{ matrix.IMAGE }}:latest
docker push --platform ${{ matrix.platform }} ${DOCKER_ORG}/${{ matrix.IMAGE }}:${TAG}
- name: Push Tags To Quay.io
run: |
docker push quay.io/${DOCKER_ORG}/${{ matrix.IMAGE }}:latest
docker push quay.io/${DOCKER_ORG}/${{ matrix.IMAGE }}:${TAG}
docker push --platform ${{ matrix.platform }} quay.io/${DOCKER_ORG}/${{ matrix.IMAGE }}:latest
docker push --platform ${{ matrix.platform }} quay.io/${DOCKER_ORG}/${{ matrix.IMAGE }}:${TAG}

0 comments on commit 7edf75a

Please sign in to comment.