Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update publish to push to quay.io #33

Merged
merged 1 commit into from
Aug 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Image to GHCR
name: Publish Image to Quay

on:
release:
Expand All @@ -11,7 +11,7 @@ on:
required: true
env:
IMAGE_NAME: trestle-bot
IMAGE_REGISTRY: ghcr.io/redhatproductsecurity
IMAGE_REGISTRY: quay.io

jobs:
publish-image:
Expand All @@ -23,11 +23,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Log in to ghcr.io
- name: Log in to registry
uses: redhat-actions/podman-login@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ secrets.QUAY_USER }}
password: ${{ secrets.QUAY_TOKEN }}
registry: ${{ env.IMAGE_REGISTRY }}

- name: Check if triggered by release or workflow dispatch
Expand Down Expand Up @@ -56,16 +56,14 @@ jobs:
containerfiles: |
./Dockerfile

- name: Push To GHCR
- name: Push To registry
uses: redhat-actions/push-to-registry@v2
id: push
with:
image: ${{ steps.build_image.outputs.image }}
tags: ${{ steps.build_image.outputs.tags }}
registry: ${{ env.IMAGE_REGISTRY }}
registry: ${{ env.IMAGE_REGISTRY }}/${{ vars.QUAY_ORG }}

- name: Echo outputs
run: |
echo "${{ toJSON(steps.push.outputs) }}"


Loading