From 2fde8508aac3c4f5e436fb33ed645a7fcfca331a Mon Sep 17 00:00:00 2001 From: Dustin Kut Moy Cheung Date: Fri, 20 Feb 2026 10:59:09 -0500 Subject: [PATCH] Attempt to do a JIB image push also --- .github/workflows/maven-snapshot.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-snapshot.yml b/.github/workflows/maven-snapshot.yml index 26aabc9..bc66c29 100644 --- a/.github/workflows/maven-snapshot.yml +++ b/.github/workflows/maven-snapshot.yml @@ -25,7 +25,7 @@ on: type: boolean default: false quarkus_jib_image: - description: 'Whether to perform a Quarkus JIB image build. Default: false' + description: 'Whether to perform a Quarkus JIB image build and push. Default: false' required: false type: boolean default: false @@ -35,6 +35,12 @@ on: required: true SONATYPE_PASSWORD: required: true + QUAY_DEVEL_USERNAME: + # Quay.io username for image push + required: false + QUAY_DEVEL_PASSWORD: + # Quay.io password for image push + required: false # cancel in-progress runs of the same workflow # to avoid unnecessary runs when multiple commits pushed @@ -71,7 +77,11 @@ jobs: - name: Deploy Snapshot # Only run for snapshot version and not for commits with released versions if: endsWith(steps.project-version.outputs.version, '-SNAPSHOT') - run: ${{ inputs.snapshot_deploy_command }} ${{ inputs.quarkus_jib_image && '-Dquarkus.container-image.build=true' || '' }} + run: > + ${{ inputs.snapshot_deploy_command }} + ${{ inputs.quarkus_jib_image && '-Dquarkus.container-image.build=true -Dquarkus.container-image.push=true' || '' }} env: MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }} MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + QUARKUS_CONTAINER_IMAGE_USERNAME: ${{ secrets.QUAY_DEVEL_USERNAME }} + QUARKUS_CONTAINER_IMAGE_PASSWORD: ${{ secrets.QUAY_DEVEL_PASSWORD }}