diff --git a/.github/workflows/publish-container.yml b/.github/workflows/publish-container.yml index 807f731..3e85440 100644 --- a/.github/workflows/publish-container.yml +++ b/.github/workflows/publish-container.yml @@ -13,7 +13,9 @@ env: # Use docker.io for Docker Hub if empty REGISTRY: ghcr.io # github.repository as / - IMAGE_NAME: pgschk/alpine-tookit + IMAGES: | + docker.io/pgschk/alpine-toolkit + ghcr.io/pgschk/alpine-toolkit TEST_TAG: test jobs: @@ -45,7 +47,7 @@ jobs: uses: docker/metadata-action@v4 with: images: | - ${{ env.IMAGE_NAME }} + ${{ env.IMAGES }} tags: | type=edge type=sha @@ -81,7 +83,7 @@ jobs: # Check if image is build - name: Check images created - run: buildah images | grep '${{ env.IMAGE_NAME }}' + run: buildah images | grep '${{ env.IMAGES }}' - name: Check image metadata run: | @@ -127,4 +129,4 @@ jobs: COSIGN_EXPERIMENTAL: "true" # This step uses the identity token to provision an ephemeral certificate # against the sigstore community Fulcio instance. - run: echo "${{ steps.docker-metadata.outputs.tags }}" | xargs -I {} cosign sign --yes {}@${{ steps.build_image.outputs.digest }} + run: echo "${{ steps.docker-metadata.outputs.tags }}" | xargs -I {} cosign sign --yes {}@${{ steps.build_image.outputs.image-with-tag }}