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
|
echo "TAG=$TAG" >> $GITHUB_ENV
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Login
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: git.kjan.de
|
registry: git.kjan.de
|
||||||
username: ${{ secrets.DOCKER_USER }}
|
username: ${{ secrets.DOCKER_USER }}
|
||||||
password: ${{ secrets.DOCKER_PASS }}
|
password: ${{ secrets.DOCKER_PASS }}
|
||||||
- name: Push
|
- name: Build and push
|
||||||
run: docker push git.kjan.de/szut/casino-backend:latest
|
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 }}
|
||||||
|
|
Reference in a new issue