From 9c31676397d293b7a45fe348d9bdfcc37bb81e1d Mon Sep 17 00:00:00 2001 From: Bronek Kozicki Date: Sun, 13 Oct 2024 17:48:50 +0100 Subject: [PATCH 1/2] Fix context --- .github/workflows/ci.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42b83e4c..ebba6b4a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,9 @@ jobs: - linux/arm64 steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Prepare run: | platform=${{ matrix.platform }} @@ -40,7 +43,7 @@ jobs: uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY_IMAGE }}-${{ env.COMPILER }} - tags: type=semver,pattern={{major}},value=${{ env.RELEASE }} + tags: type=raw,value=${{ env.RELEASE }} - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -59,9 +62,11 @@ jobs: uses: docker/build-push-action@v6 with: platforms: ${{ matrix.platform }} - build-args: GCC_RELEASE=${{ env.RELEASE }},CLANG_RELEASE=${{ env.RELEASE }} - context: ci/build - file: Dockerfile.${{ env.COMPILER }} + build-args: | + GCC_RELEASE=${{ env.RELEASE }} + CLANG_RELEASE=${{ env.RELEASE }} + context: ./ci/build + file: ./ci/build/Dockerfile.${{ env.COMPILER }} labels: ${{ steps.meta.outputs.labels }} outputs: type=image,name=${{ env.REGISTRY_IMAGE }}-${{ env.COMPILER }},push-by-digest=true,name-canonical=true,push=true @@ -113,7 +118,7 @@ jobs: uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY_IMAGE }}-${{ env.COMPILER }} - tags: type=semver,pattern={{major}},value=${{ env.RELEASE }} + tags: type=raw,value=${{ env.RELEASE }} - name: Login to Docker Hub uses: docker/login-action@v3 From b933600d854b1ac19a5605848e9dba5bb10a09d3 Mon Sep 17 00:00:00 2001 From: Bronek Kozicki Date: Sun, 13 Oct 2024 18:47:07 +0100 Subject: [PATCH 2/2] Switch to git context, enable SBOM --- .github/workflows/ci.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ebba6b4a..c0a17d42 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,9 +27,6 @@ jobs: - linux/arm64 steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Prepare run: | platform=${{ matrix.platform }} @@ -65,10 +62,12 @@ jobs: build-args: | GCC_RELEASE=${{ env.RELEASE }} CLANG_RELEASE=${{ env.RELEASE }} - context: ./ci/build - file: ./ci/build/Dockerfile.${{ env.COMPILER }} + context: "{{defaultContext}}:ci/build" + file: Dockerfile.${{ env.COMPILER }} labels: ${{ steps.meta.outputs.labels }} outputs: type=image,name=${{ env.REGISTRY_IMAGE }}-${{ env.COMPILER }},push-by-digest=true,name-canonical=true,push=true + sbom: true + provenance: mode=max - name: Export digest run: |