From 78b3442d23f368c2803523590a73f3ab2e43da6a Mon Sep 17 00:00:00 2001 From: Zack Brady Date: Sat, 20 Jul 2024 01:12:59 -0400 Subject: [PATCH] added dockerhub to github actions workflow --- .github/workflows/release.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6de8de5..48c8c8a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -57,6 +57,13 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Authenticate to DockerHub Container Registry + uses: docker/login-action@v3 + with: + registry: docker.io + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and Push Release Container to GitHub Container Registry uses: docker/build-push-action@v5 with: @@ -64,7 +71,7 @@ jobs: target: release platforms: linux/amd64,linux/arm64 push: true - tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }} + tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }}, docker.io/hauler/hauler:${{ github.ref_name }} - name: Build and Push Debug Container to GitHub Container Registry uses: docker/build-push-action@v5 @@ -73,4 +80,4 @@ jobs: target: debug platforms: linux/amd64,linux/arm64 push: true - tags: ghcr.io/${{ github.repository }}-debug:${{ github.ref_name }} + tags: ghcr.io/${{ github.repository }}-debug:${{ github.ref_name }}, docker.io/hauler/hauler-debug:${{ github.ref_name }}