From a98c9e1a9a3c4f8cdbed5454a1228b4afeddf76f Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Tue, 11 Jul 2023 14:26:36 +0530 Subject: [PATCH] ci: stop pushing images to dockerhub (#1469) --- .github/workflows/build-and-release.yaml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/.github/workflows/build-and-release.yaml b/.github/workflows/build-and-release.yaml index 7825628f7..9a40598bb 100644 --- a/.github/workflows/build-and-release.yaml +++ b/.github/workflows/build-and-release.yaml @@ -71,13 +71,6 @@ jobs: - name: Installing ko run: go install github.com/google/ko@v0.11.2 - - name: Login to Docker Hub - if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Login to GCR uses: docker/login-action@v2 with: @@ -92,15 +85,6 @@ jobs: [[ ${GITHUB_REF_TYPE} == "tag" ]] && IMAGE_TAG=${GITHUB_REF_NAME} echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_OUTPUT - - name: Publish container images to DockerHub - if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') - env: - KO_DOCKER_REPO: docker.io/triggermesh - KOFLAGS: --jobs=2 --platform=linux/amd64,linux/arm64,linux/ppc64le --push=${{ github.event_name != 'pull_request' }} - DIST_DIR: /tmp/dist - run: | - IMAGE_TAG=${{ steps.image-tag.outputs.IMAGE_TAG }} make release - - name: Publish container images to GCR env: KO_DOCKER_REPO: gcr.io/triggermesh