|
60 | 60 | with:
|
61 | 61 | quay_login: ${{ secrets.QUAY_LOGIN }}
|
62 | 62 | quay_token: ${{ secrets.QUAY_TOKEN }}
|
| 63 | + go-version: ${{ env.go-version }} |
63 | 64 |
|
64 | 65 | - name: Push catalog index changes
|
65 | 66 | uses: ad-m/github-push-action@master
|
@@ -127,3 +128,60 @@ jobs:
|
127 | 128 | bodyFile: RELEASE_BODY.md
|
128 | 129 | # NOTE: We always generate pre-releases and mark them as releases manually
|
129 | 130 | prerelease: true
|
| 131 | + |
| 132 | + publish-olm-candidate: |
| 133 | + needs: |
| 134 | + - create-github-prerelease |
| 135 | + runs-on: ubuntu-latest |
| 136 | + environment: quay |
| 137 | + steps: |
| 138 | + - name: Checkout |
| 139 | + uses: actions/checkout@v3 |
| 140 | + with: |
| 141 | + fetch-depth: 0 |
| 142 | + token: ${{ secrets.REPOSITORY_PUSH_TOKEN }} |
| 143 | + |
| 144 | + - name: Import common environment variables |
| 145 | + run: cat ".github/env" >> "$GITHUB_ENV" |
| 146 | + |
| 147 | + - name: Setup Go environment |
| 148 | + uses: actions/setup-go@v3 |
| 149 | + with: |
| 150 | + go-version: ${{ env.go-version }} |
| 151 | + check-latest: true |
| 152 | + cache: true |
| 153 | + |
| 154 | + - name: Set version |
| 155 | + id: version |
| 156 | + run: | |
| 157 | + version="$(cat VERSION)-rc" |
| 158 | + echo "version=$version" >> "$GITHUB_OUTPUT" |
| 159 | +
|
| 160 | + - name: publish catalog |
| 161 | + uses: ./.github/olm-publish |
| 162 | + env: |
| 163 | + IMAGE_BASE: ${{ secrets.IMAGE_BASE }} |
| 164 | + VERSION: ${{ steps.version.outputs.version }} |
| 165 | + CHANNELS: candidate,development |
| 166 | + DEFAULT_CHANNEL: candidate |
| 167 | + RELEASE_SHA: ${GITHUB_SHA} |
| 168 | + with: |
| 169 | + quay_login: ${{ secrets.QUAY_LOGIN }} |
| 170 | + quay_token: ${{ secrets.QUAY_TOKEN }} |
| 171 | + go-version: ${{ env.go-version }} |
| 172 | + |
| 173 | + - name: Push catalog index changes |
| 174 | + uses: ad-m/github-push-action@master |
| 175 | + with: |
| 176 | + github_token: ${{ secrets.REPOSITORY_PUSH_TOKEN }} |
| 177 | + branch: olm-catalog |
| 178 | + |
| 179 | + - name: Publish Package |
| 180 | + uses: ./.github/package-operator-publish |
| 181 | + env: |
| 182 | + IMAGE_BASE: ${{ secrets.IMAGE_BASE }} |
| 183 | + VERSION: ${{ steps.version.outputs.version }} |
| 184 | + with: |
| 185 | + quay_login: ${{ secrets.QUAY_LOGIN }} |
| 186 | + quay_token: ${{ secrets.QUAY_TOKEN }} |
| 187 | + go-version: ${{ env.go-version }} |
0 commit comments