Skip to content

Commit

Permalink
fix: docker build (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
roderik authored May 21, 2024
1 parent 7def528 commit ced18df
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
id: test

- name: Docker meta
id: meta
id: docker_meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
Expand All @@ -101,10 +101,24 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v5
id: build-and-push
with:
load: false
provenance: true
sbom: true
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
no-cache: true

- name: Sign the images with GitHub OIDC Token
env:
DIGEST: ${{ steps.build-and-push.outputs.digest }}
TAGS: ${{ steps.docker_meta.outputs.tags }}
run: |
images=""
for tag in ${TAGS}; do
images+="${tag}@${DIGEST} "
done
cosign sign --yes ${images}

0 comments on commit ced18df

Please sign in to comment.