Skip to content

Commit

Permalink
workflows: add container build test
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Stephens <[email protected]>
  • Loading branch information
patrick-stephens committed Jan 27, 2025
1 parent 3aaee2f commit f9ff41e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/call-build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ on:
registry:
description: The registry to push container images to.
type: string
required: true
required: false
default: ghcr.io
username:
description: The username for the registry.
type: string
Expand Down Expand Up @@ -107,7 +108,7 @@ jobs:
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
registry: ${{ inputs.registry }}
username: ${{ github.actor }}
password: ${{ secrets.token }}

Expand Down Expand Up @@ -178,7 +179,7 @@ jobs:
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
registry: ${{ inputs.registry }}
username: ${{ github.actor }}
password: ${{ secrets.token }}

Expand Down Expand Up @@ -227,7 +228,7 @@ jobs:
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
registry: ${{ inputs.registry }}
username: ${{ github.actor }}
password: ${{ secrets.token }}

Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/pr-package-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,24 @@ jobs:
- name: Debug event output
uses: hmarr/debug-action@v3

pr-container-builds:
name: PR - container builds
needs:
- pr-package-test-build-get-meta
- pr-package-test-build-generate-matrix
uses: ./.github/workflows/call-build-images.yaml
with:
version: pr-${{ github.event.number }}
ref: ${{ github.ref }}
registry: ghcr.io
username: ${{ github.actor }}
image: ${{ github.repository }}/pr
unstable: ${{ needs.pr-package-test-build-get-meta.outputs.date }}
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
cosign_private_key: ${{ secrets.COSIGN_PRIVATE_KEY }}
cosign_private_key_password: ${{ secrets.COSIGN_PASSWORD }}

pr-package-test-build-generate-matrix:
name: PR - packages build matrix
needs:
Expand Down

0 comments on commit f9ff41e

Please sign in to comment.