From c124e3d0c6afe3c2d18a90f421d0678236152902 Mon Sep 17 00:00:00 2001 From: Felipe Cotti Date: Tue, 29 Oct 2024 20:45:31 -0300 Subject: [PATCH] Please update properly if you decided to move to v6. --- .github/workflows/main.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 485e97a..e254914 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,6 +24,12 @@ jobs: - name: Run unit tests run: dotnet test tests/Guestbooky.UnitTests/Guestbooky.UnitTests.csproj + - name: Login to DockerHub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_TOKEN }} + - name: Build/push Docker image (main) if: github.ref == 'refs/heads/main' uses: docker/build-push-action@v6 @@ -31,8 +37,4 @@ jobs: context: . file: build/guestbooky-be/Dockerfile push: true - tags: cotti/guestbooky-be:latest - env: - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} - DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} - DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} \ No newline at end of file + tags: ${{ secrets.DOCKER_USERNAME }}/guestbooky-be:latest \ No newline at end of file