Skip to content

Commit

Permalink
Add build-images workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mikenairn committed Feb 2, 2024
1 parent ce2e4d7 commit 0fab71e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,24 +110,19 @@ jobs:
name: Build and Push catalog image
needs: [build-bundle]
runs-on: ubuntu-20.04
outputs:
catalog-image: ${{ steps.catalog-image.outputs.image }}
steps:
- name: Check out code
uses: actions/checkout@v4

- id: catalog-image
run: echo "image=${{ env.IMG_REGISTRY_HOST }}/${{ env.IMG_REGISTRY_ORG }}/${{ env.OPERATOR_NAME }}-catalog:${{ github.sha }}" >> "$GITHUB_OUTPUT"

- name: Run make catalog-build
run: make catalog-build BUNDLE_IMG=${{ needs.build-bundle.outputs.bundle-image }} CATALOG_IMG=${{ steps.catalog-image.outputs.image }}
run: make catalog-build BUNDLE_IMG=${{ needs.build-bundle.outputs.bundle-image }} CATALOG_IMG=${{ env.IMG_REGISTRY_HOST }}/${{ env.IMG_REGISTRY_ORG }}/${{ env.OPERATOR_NAME }}-catalog:${{ github.sha }}

- 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 }}
image: ${{ env.OPERATOR_NAME }}-catalog
tags: ${{ steps.build-image.outputs.tags }}
registry: ${{ env.IMG_REGISTRY_HOST }}/${{ env.IMG_REGISTRY_ORG }}
username: ${{ secrets.IMG_REGISTRY_USERNAME }}
Expand Down

0 comments on commit 0fab71e

Please sign in to comment.