|
49 | 49 |
|
50 | 50 | create-images: |
51 | 51 | runs-on: ubuntu-latest |
52 | | - if: ${{ needs.setup.outputs.pr_type != 'closed' }} |
53 | 52 | needs: setup |
54 | 53 | steps: |
55 | 54 | - name: Checkout code |
|
61 | 60 | uses: "./.github/workflow_templates/build_push_exporters" |
62 | 61 | with: |
63 | 62 | image: rc-pelorus-exporter |
64 | | - tags: vpr${{ needs.setup.outputs.pr_number }}-${{ needs.setup.outputs.commit_hash }} |
| 63 | + tags: needs.setup.outputs.commit_hash |
65 | 64 | quay_imagenamespace: ${{ secrets.QUAY_IMAGE_NAMESPACE }} |
66 | 65 | quay_username: ${{ secrets.QUAY_USERNAME }} |
67 | 66 | quay_password: ${{ secrets.QUAY_PASSWORD }} |
|
75 | 74 |
|
76 | 75 | - name: Use test images in operator |
77 | 76 | env: |
78 | | - TEST_VERSION: pr${{ needs.setup.outputs.pr_number }}-${{ needs.setup.outputs.commit_hash }} |
| 77 | + TEST_VERSION: needs.setup.outputs.commit_hash |
79 | 78 | working-directory: ./pelorus-operator |
80 | 79 | run: | |
81 | 80 | export CURRENT_OPERATOR_VERSION="$(grep "^VERSION ?= " Makefile | cut -c 12-)" |
@@ -106,20 +105,21 @@ jobs: |
106 | 105 | working-directory: ./pelorus-operator |
107 | 106 | run: | |
108 | 107 | make podman-build |
109 | | - podman image ls -a | grep pr${{ needs.setup.outputs.pr_number }}-${{ needs.setup.outputs.commit_hash }} |
| 108 | + podman image ls -a | grep ${{ needs.setup.outputs.commit_hash }} |
110 | 109 | podman image ls -a | grep rc-pelorus-operator |
111 | 110 | make podman-push |
112 | 111 |
|
113 | 112 | - name: Build and push operator bundle test image |
114 | 113 | working-directory: ./pelorus-operator |
115 | 114 | run: | |
116 | 115 | make bundle-build |
117 | | - podman image ls -a | grep pr${{ needs.setup.outputs.pr_number }}-${{ needs.setup.outputs.commit_hash }} |
| 116 | + podman image ls -a | grep ${{ needs.setup.outputs.commit_hash }} |
118 | 117 | podman image ls -a | grep rc-pelorus-operator-bundle |
119 | 118 | make bundle-push |
120 | 119 |
|
121 | 120 | # TODO delete old comments, just have the last on PR |
122 | 121 | - name: Comment test command in PR |
| 122 | + if: ${{ github.event_name == 'pull_request' }} |
123 | 123 | uses: "./.github/workflow_templates/comment-pr" |
124 | 124 | with: |
125 | 125 | token: ${{ secrets.GITHUB_TOKEN }} |
|
0 commit comments