Skip to content

Commit

Permalink
fix disconnected CSV support (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabre1041 committed Sep 2, 2021
1 parent a0785d0 commit cd79c3d
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,6 @@ jobs:
run: |
make bundle IMG=quay.io/${QUAY_REGISTRY}:${OPERATOR_IMAGE_TAG} VERSION=${BUNDLE_VERSION} DEFAULT_CHANNEL=alpha
- name: process bundle for disconnected support
uses: redhat-cop/github-actions/disconnected-csv@master
with:
CSV_FILE: bundle/manifests/${{ env.REPOSITORY_NAME }}.clusterserviceversion.yaml
TAGS_TO_DIGESTS: ${OPERATOR_IMAGE_TAG}

- name: verify bundle
shell: bash
run: operator-sdk bundle validate ./bundle --select-optional name=operatorhub
Expand Down Expand Up @@ -138,13 +132,6 @@ jobs:
push: true
tags: "quay.io/${{ env.QUAY_REGISTRY }}:latest,quay.io/${{ env.QUAY_REGISTRY }}:${{ env.OPERATOR_IMAGE_TAG }}"

- name: Update CSV
env:
QUAY_REGISTRY: "${{ env.QUAY_REGISTRY }}"
REPOSITORY_NAME: "${{ env.REPOSITORY_NAME }}"
OPERATOR_IMAGE_TAG: "${{ env.OPERATOR_IMAGE_TAG }}"
run: ./hack/update_csv.sh

- name: Verify bundle after csv update
shell: bash
run: operator-sdk bundle validate ./bundle --select-optional name=operatorhub
Expand All @@ -162,6 +149,12 @@ jobs:
shell: bash
run: operator-sdk bundle validate quay.io/${QUAY_REGISTRY}-bundle:${BUNDLE_IMAGE_TAG} --select-optional name=operatorhub

- name: process bundle for disconnected support
uses: redhat-cop/github-actions/disconnected-csv@master
with:
CSV_FILE: bundle/manifests/${{ env.REPOSITORY_NAME }}.clusterserviceversion.yaml
TAGS_TO_DIGESTS: ${OPERATOR_IMAGE_TAG}

release-helm-chart:
name: Helm Chart Release
runs-on: ubuntu-latest
Expand Down

0 comments on commit cd79c3d

Please sign in to comment.