Please update properly if you decided to move to v6.
Some checks are pending
CI/CD / build-and-test (push) Waiting to run
Some checks are pending
CI/CD / build-and-test (push) Waiting to run
This commit is contained in:
parent
41ed2bdddd
commit
c124e3d0c6
1 changed files with 7 additions and 5 deletions
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
|
@ -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
|
Loading…
Reference in a new issue