Skip to content

Commit

Permalink
Push databroker-cli images also to quay.io
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schildt <[email protected]>
  • Loading branch information
SebastianSchildt authored and wba2hi committed Jun 7, 2024
1 parent 6414707 commit 963a297
Show file tree
Hide file tree
Showing 2 changed files with 19 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 @@ -58,6 +58,9 @@ jobs:
QUAY_IO_USERNAME: ${{ secrets.QUAY_IO_USERNAME }}
call_kuksa_databroker-cli_build:
uses: ./.github/workflows/kuksa_databroker-cli_build.yml
secrets:
QUAY_IO_TOKEN: ${{ secrets.QUAY_IO_TOKEN }}
QUAY_IO_USERNAME: ${{ secrets.QUAY_IO_USERNAME }}

create_release:
runs-on: ubuntu-latest
Expand Down
18 changes: 16 additions & 2 deletions .github/workflows/kuksa_databroker-cli_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ on:
- "Cargo.*"
- "Cross.toml"
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 @@ -145,6 +150,7 @@ jobs:
# list of Docker images to use as base name for tags
images: |
ghcr.io/eclipse-kuksa/kuksa-databroker-cli
quay.io/eclipse-kuksa/kuksa-databroker-cli
# generate Docker tags based on the following events/attributes
tags: |
type=ref,event=branch
Expand All @@ -157,15 +163,23 @@ jobs:
id: buildx
uses: docker/setup-buildx-action@v3

- name: Log in to the Container registry
- name: Log in to ghcr.io container registry
if: needs.check_ghcr_push.outputs.push == 'true'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build kuksa-databroker-cli container and push to ghcr.io (and ttl.sh)
- name: Log in to quay.io container registry
if: needs.check_ghcr_push.outputs.push == 'true'
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_IO_USERNAME }}
password: ${{ secrets.QUAY_IO_TOKEN }}

- name: Build kuksa-databroker-cli 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 963a297

Please sign in to comment.