|
16 | 16 | jobs: |
17 | 17 | create-release: |
18 | 18 | name: Create Release |
19 | | - if: (github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.sha, 'release')) || github.event.inputs.version != '' |
| 19 | + if: ( ${{github.event.pull_request.merged == true }} && startsWith(github.head_ref, 'release/')) || github.event.inputs.version != '' |
20 | 20 | runs-on: ubuntu-latest |
21 | 21 | env: |
22 | 22 | DOCKER_RELEASE_REPO: mongodb/mongodb-atlas-kubernetes-operator |
|
32 | 32 | - name: Print Env and Get version |
33 | 33 | id: tag |
34 | 34 | env: |
35 | | - BRANCH: ${{ github.event.pull_request.head.sha }} |
| 35 | + BRANCH: ${{ github.head_ref }} |
36 | 36 | VERSION: ${{ github.event.inputs.version }} |
37 | 37 | run: | |
38 | 38 | version=$VERSION |
|
99 | 99 | tags: ${{ steps.prepare-quay-image-tag.outputs.tags }} |
100 | 100 | build-args: VERSION=${{ steps.tag.outputs.tag }} |
101 | 101 |
|
102 | | -# - name: Now Prepare RedHadConnect image |
103 | | -# uses: ./.github/actions/gen-install-scripts |
104 | | -# with: |
105 | | -# IMAGE_URL: ${{ env.REDHAT_RELEASE_REGISTRY }}/${{ env.REDHAT_OPERATOR_REPO }}:${{ env.VERSION }} |
106 | | -# VERSION: ${{ env.VERSION }} |
107 | | -# ENV: prod |
108 | | -# - name: Login to RedHat registry |
109 | | -# uses: docker/login-action@v2 |
110 | | -# with: |
111 | | -# registry: ${{ env.REDHAT_SCAN_RELEASE_REGISTRY }} |
112 | | -# username: unused |
113 | | -# password: ${{ secrets.REDHAT_REGISTRY_PASSWORD }} |
114 | | -# - name: Prepare docker RedHat image tag |
115 | | -# id: prepare-redhat-image-tag |
116 | | -# run: | |
117 | | -# REPOSITORY=${{ env.REDHAT_SCAN_OPERATOR_REPO }} |
118 | | -# TAG=${{ steps.tag.outputs.version }} |
119 | | -# TAGS="${REPOSITORY}:${TAG}" |
120 | | -# echo "tags=$TAGS" >> $GITHUB_OUTPUT |
121 | | -# - name: Push Atlas Operator to RedHat Connect |
122 | | -# uses: docker/build-push-action@v3 |
123 | | -# with: |
124 | | -# context: . |
125 | | -# push: true |
126 | | -# tags: ${{ steps.prepare-redhat-image-tag.outputs.tags }} |
127 | | -# labels: version=${{ steps.tag.outputs.version }} |
128 | | -# build_args: VERSION=${{ steps.tag.outputs.tag }} |
129 | | - |
130 | 102 | - name: Create Release |
131 | 103 | id: create_release |
132 | 104 | uses: actions/create-release@v1 |
|
0 commit comments