Skip to content

Commit

Permalink
chore: allow manual trigger of builds
Browse files Browse the repository at this point in the history
Adds the workflow_dispatch trigger to manually trigger docker builds
from the actions menu.
  • Loading branch information
jniles committed May 13, 2024
1 parent e5e9118 commit cf3d147
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 cf3d147

Please sign in to comment.