Skip to content

Commit

Permalink
👻 Push development index when main is updated (#210)
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Montleon <jmontleo@redhat.com>
  • Loading branch information
jmontleon authored Apr 25, 2023
1 parent ee47db9 commit 99c97c2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/march-image-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,15 @@ jobs:
quay_publish_robot: ${{ secrets.QUAY_PUBLISH_ROBOT }}
quay_publish_token: ${{ secrets.QUAY_PUBLISH_TOKEN }}
ref: ${{ github.ref }}

- name: Install opm
run: wget $(curl -s https://api.github.com/repos/operator-framework/operator-registry/releases/latest | grep 'browser_' | cut -d\" -f4 | grep linux) -O opm && chmod +x opm
if: ${{ github.ref == 'refs/heads/main' }}

- name: Build index
run: ./opm index add -c podman --mode semver --tag quay.io/konveyor/tackle2-operator-index:latest --bundles quay.io/konveyor/tackle2-operator-bundle:latest
if: ${{ github.ref == 'refs/heads/main' }}

- name: Push index
run: podman push quay.io/konveyor/tackle2-operator-index:latest --creds=${{ secrets.QUAY_PUBLISH_ROBOT }}:${{ secrets.QUAY_PUBLISH_TOKEN }}
if: ${{ github.ref == 'refs/heads/main' }}

0 comments on commit 99c97c2

Please sign in to comment.