diff --git a/.github/workflows/build-images.yaml b/.github/workflows/build-images.yaml index 93ea9749..59eb6100 100644 --- a/.github/workflows/build-images.yaml +++ b/.github/workflows/build-images.yaml @@ -27,7 +27,6 @@ env: jobs: build: -# if: github.repository_owner == 'kuadrant' name: Build and Push image runs-on: ubuntu-20.04 steps: @@ -48,15 +47,15 @@ jobs: ./Dockerfile - name: Print Build Info run: echo "Image = ${{ steps.build-image.outputs.image }}, Tags = ${{ steps.build-image.outputs.tags }}" -# - name: Push Image -# if: ${{ !env.ACT }} -# id: push-to-quay -# uses: redhat-actions/push-to-registry@v2 -# with: -# image: ${{ steps.build-image.outputs.image }} -# tags: ${{ steps.build-image.outputs.tags }} -# registry: ${{ env.IMG_REGISTRY_HOST }}/${{ env.IMG_REGISTRY_ORG }} -# username: ${{ secrets.IMG_REGISTRY_USERNAME }} -# password: ${{ secrets.IMG_REGISTRY_TOKEN }} -# - name: Print Image URL -# run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" + - name: Push Image + if: github.repository_owner == 'kuadrant' + id: push-to-quay + uses: redhat-actions/push-to-registry@v2 + with: + image: ${{ steps.build-image.outputs.image }} + tags: ${{ steps.build-image.outputs.tags }} + registry: ${{ env.IMG_REGISTRY_HOST }}/${{ env.IMG_REGISTRY_ORG }} + username: ${{ secrets.IMG_REGISTRY_USERNAME }} + password: ${{ secrets.IMG_REGISTRY_TOKEN }} + - name: Print Image URL + run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"