build(workflow): update Docker build and push actions
All checks were successful
All checks were successful
This commit is contained in:
parent
0f96b284db
commit
d9324ee7f0
1 changed files with 9 additions and 4 deletions
|
@ -46,13 +46,18 @@ jobs:
|
|||
echo "TAG=$TAG" >> $GITHUB_ENV
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Build Image
|
||||
run: docker buildx build -f backend/.docker/Dockerfile -t git.kjan.de/szut/casino-backend:${{ env.TAG }} -t git.kjan.de/szut/casino-backend:latest backend
|
||||
- name: Login
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.kjan.de
|
||||
username: ${{ secrets.DOCKER_USER }}
|
||||
password: ${{ secrets.DOCKER_PASS }}
|
||||
- name: Push
|
||||
run: docker push git.kjan.de/szut/casino-backend:latest
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: backend/
|
||||
file: backend/.docker/Dockerfile
|
||||
push: true
|
||||
tags: |
|
||||
git.kjan.de/szut/casino-backend:latest
|
||||
git.kjan.de/szut/casino-backend:${{ env.TAG }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue