Skip to content

Commit 963a297

Browse files
SebastianSchildtwba2hi
authored andcommitted
Push databroker-cli images also to quay.io
Signed-off-by: Sebastian Schildt <sebastian.schildt@de.bosch.com>
1 parent 6414707 commit 963a297

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.github/workflows/create_draft_release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ jobs:
5858
QUAY_IO_USERNAME: ${{ secrets.QUAY_IO_USERNAME }}
5959
call_kuksa_databroker-cli_build:
6060
uses: ./.github/workflows/kuksa_databroker-cli_build.yml
61+
secrets:
62+
QUAY_IO_TOKEN: ${{ secrets.QUAY_IO_TOKEN }}
63+
QUAY_IO_USERNAME: ${{ secrets.QUAY_IO_USERNAME }}
6164

6265
create_release:
6366
runs-on: ubuntu-latest

.github/workflows/kuksa_databroker-cli_build.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ on:
2424
- "Cargo.*"
2525
- "Cross.toml"
2626
workflow_call:
27+
secrets:
28+
QUAY_IO_TOKEN:
29+
required: true
30+
QUAY_IO_USERNAME:
31+
required: true
2732
workflow_dispatch:
2833

2934
# suffix to avoid cancellation when running from release workflow
@@ -145,6 +150,7 @@ jobs:
145150
# list of Docker images to use as base name for tags
146151
images: |
147152
ghcr.io/eclipse-kuksa/kuksa-databroker-cli
153+
quay.io/eclipse-kuksa/kuksa-databroker-cli
148154
# generate Docker tags based on the following events/attributes
149155
tags: |
150156
type=ref,event=branch
@@ -157,15 +163,23 @@ jobs:
157163
id: buildx
158164
uses: docker/setup-buildx-action@v3
159165

160-
- name: Log in to the Container registry
166+
- name: Log in to ghcr.io container registry
161167
if: needs.check_ghcr_push.outputs.push == 'true'
162168
uses: docker/login-action@v3
163169
with:
164170
registry: ghcr.io
165171
username: ${{ github.repository_owner }}
166172
password: ${{ secrets.GITHUB_TOKEN }}
167173

168-
- name: Build kuksa-databroker-cli container and push to ghcr.io (and ttl.sh)
174+
- name: Log in to quay.io container registry
175+
if: needs.check_ghcr_push.outputs.push == 'true'
176+
uses: docker/login-action@v3
177+
with:
178+
registry: quay.io
179+
username: ${{ secrets.QUAY_IO_USERNAME }}
180+
password: ${{ secrets.QUAY_IO_TOKEN }}
181+
182+
- name: Build kuksa-databroker-cli container and push to ghcr.io, quay.io and ttl.sh
169183
id: ghcr-build
170184
if: needs.check_ghcr_push.outputs.push == 'true'
171185
uses: docker/build-push-action@v5

0 commit comments

Comments
 (0)