Skip to content

Commit

Permalink
Also push images 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 erikbosch committed Jun 12, 2024
1 parent 7db10fb commit a4a5537
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/someip_provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,28 +105,37 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

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

- 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: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository }}/someip-provider
quay.io/eclipse-kuksa/someip-provider
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: "Build someip2val container and push to ghcr.io"
- name: "Build someip2val container and push to ghcr.io, quay.io and ttl.sh"
if: needs.check_ghcr_push.outputs.push == 'true'
id: image_build_ghcr
uses: docker/build-push-action@v5
Expand All @@ -139,7 +148,6 @@ jobs:
tags: |
${{ steps.meta.outputs.tags }}
ttl.sh/eclipse-kuksa/kuksa-someip-provider/someip-provider-${{github.sha}}
ttl.sh/kuksa.val.feeders/someip-feeder-${{github.sha}}
labels: ${{ steps.meta.outputs.labels }}
# Provenance to solve that an unknown/unkown image is shown on ghcr.io
# Same problem as described in https://github.com/orgs/community/discussions/45969
Expand Down

0 comments on commit a4a5537

Please sign in to comment.