Skip to content

Commit

Permalink
Make sure quay.io secrets will be transferred when calling databroker…
Browse files Browse the repository at this point in the history
… build action

Signed-off-by: Sebastian Schildt <[email protected]>
  • Loading branch information
SebastianSchildt committed Jun 6, 2024
1 parent 684c6cc commit 1d5f06b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/create_draft_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ jobs:
call_kuksa_databroker_build:
uses: ./.github/workflows/kuksa_databroker_build.yml
secrets:
QUAY_IO_TOKEN: ${{ secrets.QUAY_IO_TOKEN }}
QUAY_IO_USERNAME: ${{ secrets.QUAY_IO_TOKEN }}
call_kuksa_databroker-cli_build:
uses: ./.github/workflows/kuksa_databroker-cli_build.yml

Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/kuksa_databroker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ on:
branches: [ main]
pull_request:
workflow_call:
secrets:
QUAY_IO_TOKEN:
required: true
QUAY_IO_USERNAME:
required: true
workflow_dispatch:

# suffix to avoid cancellation when running from release workflow
Expand Down Expand Up @@ -207,8 +212,7 @@ jobs:
username: ${{ secrets.QUAY_IO_USERNAME }}
password: ${{ secrets.QUAY_IO_TOKEN }}


- name: Build kuksa-databroker container and push to ghcr.io (and ttl.sh)
- name: Build kuksa-databroker container and push to ghcr.io, quay.io and ttl.sh
id: ghcr-build
if: needs.check_ghcr_push.outputs.push == 'true'
uses: docker/build-push-action@v5
Expand Down

0 comments on commit 1d5f06b

Please sign in to comment.