From 0e5db090315e72a0a4d4e83f016f3b111ffeebde Mon Sep 17 00:00:00 2001 From: Stefan Tatschner Date: Fri, 1 Nov 2024 19:56:35 +0100 Subject: [PATCH] Build arch linux container image --- .github/workflows/publish-container.yml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-container.yml b/.github/workflows/publish-container.yml index c7e5261..19ac2ab 100644 --- a/.github/workflows/publish-container.yml +++ b/.github/workflows/publish-container.yml @@ -48,8 +48,8 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - name: Build and push Docker image - id: push + - name: Build and push Debian container image + id: push_debian uses: docker/build-push-action@v6 with: context: containers/debian @@ -61,6 +61,23 @@ jobs: - name: Generate artifact attestation uses: actions/attest-build-provenance@v1 with: - subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} - subject-digest: ${{ steps.push.outputs.digest }} + subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/devman:debian + subject-digest: ${{ steps.push_debian.outputs.digest }} + push-to-registry: true + + - name: Build and push Arch container image + id: push_arch + uses: docker/build-push-action@v6 + with: + context: containers/arch + file: containers/arch/Containerfile + push: true + tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/devman:arch + labels: ${{ steps.meta.outputs.labels }} + + - name: Generate artifact attestation + uses: actions/attest-build-provenance@v1 + with: + subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/devman:arch + subject-digest: ${{ steps.push_rach.outputs.digest }} push-to-registry: true