Skip to content

Commit

Permalink
fix multiarch
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Sep 10, 2024
1 parent 6dc08a6 commit 54cf1c4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/cpp-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ jobs:

- name: Build an image from Dockerfile
run: |
export TAG=${{ github.base_ref || github.ref_name }}
docker build -t docker.io/${{ github.repository }}:${TAG}-${{ matrix.arch }} -f ${{ matrix.dockerfile }} --build-arg CROSSCOMPILER=${{ matrix.crosscompiler }} --build-arg ARCH=${{ matrix.arch }} --build-arg IMAGE=${{ matrix.image }} .
docker build -t docker.io/${{ github.repository }}:${{ github.base_ref || github.ref_name }}-${{ matrix.arch }} -f ${{ matrix.dockerfile }} --build-arg CROSSCOMPILER=${{ matrix.crosscompiler }} --build-arg ARCH=${{ matrix.arch }} --build-arg IMAGE=${{ matrix.image }} .
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand All @@ -46,8 +45,7 @@ jobs:

- name: Push to Container Registry
run: |
export TAG=${{ github.base_ref || github.ref_name }}
docker push docker.io/${{ github.repository }}:${TAG}-${{ matrix.arch }}
docker push docker.io/${{ github.repository }}:${{ github.base_ref || github.ref_name }}-${{ matrix.arch }}
multiarch:
needs: build
Expand Down

0 comments on commit 54cf1c4

Please sign in to comment.