Skip to content

Commit

Permalink
Use action based on new 'buildx imagetools'
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Feb 10, 2025
1 parent 493eec1 commit 5322545
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ jobs:
uses: docker/build-push-action@v6
with:
context: ${{ matrix.os }}
provenance: false
push: true
tags: |
ghcr.io/${{github.repository}}/${{matrix.os}}:latest_${{matrix.arch}}
Expand Down Expand Up @@ -89,12 +88,11 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Create multi-arch manifest
run: |
docker manifest create \
ghcr.io/${{github.repository}}/${{matrix.os}}:latest \
ghcr.io/${{github.repository}}/${{matrix.os}}:latest_amd64 \
ghcr.io/${{github.repository}}/${{matrix.os}}:latest_arm64
docker manifest push ghcr.io/${{github.repository}}/${{matrix.os}}:latest
docker tag ghcr.io/${{github.repository}}/${{matrix.os}}:latest cran/${{matrix.os}}:latest
docker manifest push cran/${{matrix.os}}:latest
- uses: int128/docker-manifest-create-action@v2
with:
tags: |
ghcr.io/${{ github.repository }}/${{matrix.os}}:latest
cran/${{matrix.os}}:latest
sources: |
ghcr.io/${{ github.repository }}/${{matrix.os}}:latest_amd64
ghcr.io/${{ github.repository }}/${{matrix.os}}:latest_arm64

0 comments on commit 5322545

Please sign in to comment.