Skip to content

Commit

Permalink
ci: stop pushing images to dockerhub (#1469)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameer Naik committed Jul 11, 2023
1 parent edb2749 commit a98c9e1
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit a98c9e1

Please sign in to comment.