Skip to content

Commit 731d9c5

Browse files
authored
fix: release redhat openshift-preflight version upgrade (#357)
fix release redhat
1 parent 664eee1 commit 731d9c5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/release-operator.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ name: Release operator
1717
on:
1818
push:
1919
tags:
20-
- 'v[0-9]+.[0-9]+.[0-9]+-?*'
20+
- "v[0-9]+.[0-9]+.[0-9]+-?*"
2121

2222
env:
2323
GOPRIVATE: github.com/streamnative
@@ -41,7 +41,7 @@ jobs:
4141
- name: Set up Go 1.23
4242
uses: actions/setup-go@v3
4343
with:
44-
go-version: '1.23'
44+
go-version: "1.23"
4545
id: go
4646

4747
- name: Set up Git token
@@ -64,14 +64,14 @@ jobs:
6464
registry: quay.io
6565
username: ${{ secrets.QUAY_DOCKER_USERNAME }}
6666
password: ${{ secrets.QUAY_DOCKER_PASSWORD }}
67-
67+
6868
- name: Login to DockerHub
6969
uses: docker/login-action@v2
7070
with:
7171
registry: docker.io
7272
username: ${{ secrets.DOCKER_USER }}
7373
password: ${{ secrets.DOCKER_PASSWORD }}
74-
74+
7575
- name: Build image and Publish to DockerHub
7676
id: dockerhub
7777
run: |
@@ -93,7 +93,7 @@ jobs:
9393
export IMG=$IMAGE_TAG_BASE_QUAY:v$VERSION
9494
export IMG_LATEST=$IMAGE_TAG_BASE_QUAY:latest
9595
make docker-build-redhat
96-
wget https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/1.14.0/preflight-linux-amd64 -O preflight
96+
wget https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/1.14.1/preflight-linux-amd64 -O preflight
9797
chmod +x preflight
9898
mv preflight /usr/local/bin
9999
preflight -v
@@ -103,12 +103,12 @@ jobs:
103103
preflight_output=$(make report-preflight-check-result 2>&1)
104104
exit_code=$?
105105
set -e
106-
106+
107107
echo "$preflight_output"
108-
108+
109109
if [[ $exit_code -ne 0 ]]; then
110110
echo "::warning::Preflight submission failed (exit code: $exit_code)"
111-
111+
112112
# Check if the failure is due to already published image
113113
if echo "$preflight_output" | grep -i "published image can't be updated\|already published\|already certified\|cannot update published image"; then
114114
echo "::notice::Image appears to be already certified/published - this is expected for existing releases"
@@ -198,4 +198,4 @@ jobs:
198198
git commit -s -m "operator $OPERATOR_NAME ($VERSION)"
199199
git push --set-upstream origin $OPERATOR_NAME-$VERSION
200200
gh pr create --title "operator $OPERATOR_NAME ($VERSION)" -F ../.github/operatorhub/community-operators -R k8s-operatorhub/community-operators
201-
popd
201+
popd

0 commit comments

Comments
 (0)