Skip to content

Commit

Permalink
Merge pull request #2 from Third-Culture-Software/chore-build-with-do…
Browse files Browse the repository at this point in the history
…cker

chore: allow manual trigger of builds
  • Loading branch information
jniles authored May 13, 2024
2 parents e5e9118 + cf3d147 commit 75790e7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ name: Create and publish a Docker image
on:
push:
branches: ['release']
workflow_dispatch:

# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
Expand All @@ -20,7 +21,7 @@ jobs:
contents: read
packages: write
attestations: write
#
#
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -48,12 +49,12 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."

# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

0 comments on commit 75790e7

Please sign in to comment.