@@ -17,7 +17,7 @@ name: Release operator
1717on :
1818 push :
1919 tags :
20- - ' v[0-9]+.[0-9]+.[0-9]+-?*'
20+ - " v[0-9]+.[0-9]+.[0-9]+-?*"
2121
2222env :
2323 GOPRIVATE : github.com/streamnative
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 : |
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