Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
ci: stop pushing images to dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
sameersbn committed Jul 11, 2023
1 parent aeee133 commit d7aed5c
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,34 +70,6 @@ jobs:
id: buildx
uses: docker/setup-buildx-action@v2

- 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: DockerHub metadata
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
id: docker-meta
uses: docker/metadata-action@v4
with:
images: docker.io/triggermesh/${{ matrix.brokers }}
tags: |
type=semver,pattern={{raw}}
type=sha,prefix=,suffix=,format=long
- name: Build and push images to docker.io
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64,linux/ppc64le
file: cmd/${{ matrix.brokers }}/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker-meta.outputs.tags }}
labels: ${{ steps.docker-meta.outputs.labels }}

- name: Login to GCR
uses: docker/login-action@v2
with:
Expand Down

0 comments on commit d7aed5c

Please sign in to comment.