Please update properly if you decided to move to v6.
Some checks are pending
CI/CD / build-and-test (push) Waiting to run

This commit is contained in:
Felipe Cotti 2024-10-29 20:45:31 -03:00
parent 41ed2bdddd
commit c124e3d0c6

View file

@ -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 }}
tags: ${{ secrets.DOCKER_USERNAME }}/guestbooky-be:latest