From 502727bab1ae0349f9729c8408e527bfdede7393 Mon Sep 17 00:00:00 2001 From: Mostafa Moradian Date: Wed, 6 Sep 2023 20:20:52 +0200 Subject: [PATCH] Publish image to Docker Hub as well as ghcr.io --- .github/workflows/release.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8862df50..451b94fe 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -44,7 +44,12 @@ jobs: tag_name: ${{ github.ref_name }} name: ${{ github.ref_name }} generate_release_notes: true - - name: Login to GitHub Container Registry + - name: Sign in to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Sign in to GitHub Container Registry uses: docker/login-action@v2 with: registry: ghcr.io @@ -56,6 +61,8 @@ jobs: context: . push: true tags: | + gatewaydio/gatewayd:${{ github.ref_name }} + gatewaydio/gatewayd:latest ghcr.io/gatewayd-io/gatewayd:${{ github.ref_name }} ghcr.io/gatewayd-io/gatewayd:latest platforms: linux/amd64