From 59ac92753f99a13add334bfae18e0df924e9bd04 Mon Sep 17 00:00:00 2001 From: Jennifer Power Date: Fri, 11 Aug 2023 08:06:03 -0400 Subject: [PATCH] chore: update publish to push to quay.io Signed-off-by: Jennifer Power --- .github/workflows/publish.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 95926c62..5ce96742 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: Publish Image to GHCR +name: Publish Image to Quay on: release: @@ -11,7 +11,7 @@ on: required: true env: IMAGE_NAME: trestle-bot - IMAGE_REGISTRY: ghcr.io/redhatproductsecurity + IMAGE_REGISTRY: quay.io jobs: publish-image: @@ -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 @@ -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) }}" - - \ No newline at end of file