Skip to content

Commit

Permalink
fix yaml and job sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
jotak committed May 2, 2022
1 parent 14790ff commit d2dae4c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: build image
run: VERSION=${{ steps.validate_tag.outputs.tag }} IMAGE_TAG_BASE=${{ env.REGISTRY }}/${{ env.IMAGE }} make image-build bundle-build catalog-build
- name: build operator
run: VERSION=${{ steps.validate_tag.outputs.tag }} IMAGE_TAG_BASE=${{ env.REGISTRY }}/${{ env.IMAGE }} make image-build
- name: podman login to quay.io
uses: redhat-actions/podman-login@v1
with:
Expand All @@ -52,13 +52,17 @@ jobs:
image: ${{ env.IMAGE }}
tags: ${{ steps.validate_tag.outputs.tag }}
registry: ${{ env.REGISTRY }}
- name: build bundle
run: VERSION=${{ steps.validate_tag.outputs.tag }} IMAGE_TAG_BASE=${{ env.REGISTRY }}/${{ env.IMAGE }} make bundle-build
- name: push bundle to quay.io
id: push-bundle
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ env.IMAGE }}-bundle
tags: v${{ steps.validate_tag.outputs.tag }}
registry: ${{ env.REGISTRY }}
- name: build catalog
run: VERSION=${{ steps.validate_tag.outputs.tag }} IMAGE_TAG_BASE=${{ env.REGISTRY }}/${{ env.IMAGE }} make catalog-build
- name: push catalog to quay.io
id: push-catalog
uses: redhat-actions/push-to-registry@v2
Expand All @@ -67,4 +71,5 @@ jobs:
tags: v${{ steps.validate_tag.outputs.tag }}
registry: ${{ env.REGISTRY }}
- name: print images reference
run: echo "Images: ${{ steps.push-operator.outputs.registry-paths }}, ${{ steps.push-bundle.outputs.registry-paths }}, ${{ steps.push-catalog.outputs.registry-paths }}"
run: |
echo "Images: ${{ steps.push-operator.outputs.registry-paths }}, ${{ steps.push-bundle.outputs.registry-paths }}, ${{ steps.push-catalog.outputs.registry-paths }}"

0 comments on commit d2dae4c

Please sign in to comment.