Skip to content

Commit

Permalink
fix the release ci (#226)
Browse files Browse the repository at this point in the history
Signed-off-by: ericsyh <[email protected]>
  • Loading branch information
ericsyh authored Aug 2, 2024
1 parent 5a4c8bb commit b461845
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/release-operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,6 @@ jobs:
mv operator-sdk /usr/local/bin/
operator-sdk version
- name: Login to CloudSmith
uses: docker/login-action@v2
with:
registry: docker.cloudsmith.io
username: ${{ secrets.CLOUDSMITH_USERNAME }}
password: ${{ secrets.CLOUDSMITH_PASSWORD }}

- name: Login to Quay
uses: docker/login-action@v2
with:
Expand All @@ -77,16 +70,6 @@ jobs:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}

# CloudSmith: To be removed after we fully migrate to DockerHub
- name: Build image and Publish to CloudSmith
run: |
_tag_version=${GITHUB_REF##*/}
export VERSION=${_tag_version/v/}
echo $_tag_version, $VERSION
export IMG=$IMAGE_TAG_BASE:v$VERSION
make docker-build
make docker-push
- name: Build image and Publish to DockerHub
id: dockerhub
run: |
Expand All @@ -108,7 +91,7 @@ jobs:
export IMG=$IMAGE_TAG_BASE_QUAY:v$VERSION
export IMG_LATEST=$IMAGE_TAG_BASE_QUAY:latest
make docker-build-redhat
wget https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/1.9.6/preflight-linux-amd64 -O preflight
wget https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/1.10.0/preflight-linux-amd64 -O preflight
chmod +x preflight
mv preflight /usr/local/bin
preflight -v
Expand All @@ -121,6 +104,7 @@ jobs:
export DEFAULT_CHANNEL=alpha
echo "channels=$CHANNELS" >> $GITHUB_OUTPUT
echo "default_channel=$DEFAULT_CHANNEL" >> $GITHUB_OUTPUT
rm -rf bundle
make bundle-redhat
make bundle-build
make bundle-push
Expand Down

0 comments on commit b461845

Please sign in to comment.