Skip to content

Commit

Permalink
Merge pull request #103 from stakater/publish-operator-fix
Browse files Browse the repository at this point in the history
Update publish_operator_image_and_bundle.yaml workflow
  • Loading branch information
tanalam2411 authored May 9, 2024
2 parents eeb35fc + 92561ea commit 0c53770
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/publish_operator_image_and_bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:

PREFLIGHT_VERSION:
description: preflight version to use
default: "v1.9.1"
default: "v1.9.4"
required: false
type: string

Expand Down Expand Up @@ -89,7 +89,7 @@ on:
STAKATER_GITHUB_TOKEN:
description: "Secret to create branch in stakater/certified-operators repository"
required: false

ADMIN_TOKEN:
description: "Secret to commit bundle files"
required: false
Expand Down Expand Up @@ -191,7 +191,7 @@ jobs:
- name: Run Preflight test
run: |
preflight check container ${{ env.IMAGE_REPOSITORY }}:${{ steps.latest_tag.outputs.tag }} --pyxis-api-token ${{ secrets.PYXIS_API_TOKEN }} --docker-config ~/.docker/config.json
- name: Submit Preflight test
run: |
rm -r ./artifacts
Expand Down Expand Up @@ -273,14 +273,20 @@ jobs:
git status
git add .
git commit -m "[skip-ci] Update artifacts" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.ADMIN_TOKEN }}
branch: main

- name: Clone stakater/certified-operators repository
uses: GuillaumeFalourd/clone-github-repo-action@v3
with:
owner: 'stakater'
repository: 'certified-operators'
access-token: ${{ secrets.STAKATER_GITHUB_TOKEN }}

- name: Push branch
run: |
cd certified-operators
Expand All @@ -298,12 +304,6 @@ jobs:
git commit -am "Updated multi-tenant-operator to ${{ needs.publish-image.outputs.latest_tag}}"
git push --set-upstream origin mto-${{ needs.publish-image.outputs.latest_tag}}
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.ADMIN_TOKEN }}
branch: main

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand Down

0 comments on commit 0c53770

Please sign in to comment.