Skip to content

Commit

Permalink
feat(release-container): add pre-script input and run it when specifi…
Browse files Browse the repository at this point in the history
…ed (#112)

Can be used to generate a Dockerfile, e.g. by calling ansible-builder for creating an ansible-ee.
  • Loading branch information
hairmare authored Feb 16, 2025
1 parent db266a2 commit 9402e5a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ on:
required: false
default: false
type: boolean
pre-script:
description: 'Run a script before interacting with the Dockerfile.'
required: false
default: ''
type: string

jobs:
docker:
Expand Down Expand Up @@ -121,6 +126,10 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Run pre script
run: ${{ inputs.pre-script }}
if: inputs.pre-script != ''

- name: Verify ${{ inputs.dockerfile }} using cosign
run: cosign dockerfile verify --certificate-oidc-issuer ${{ inputs.cosign-certificate-oidc-issuer }} --certificate-identity-regexp ${{ inputs.cosign-certificate-identity-regexp }} ${{ inputs.cosign-base-image-only && '--base-image-only' || '' }} ${{ inputs.dockerfile }} > /dev/null
if: inputs.cosign-verify
Expand Down

0 comments on commit 9402e5a

Please sign in to comment.