1
0

fix container push

This commit is contained in:
Michael Schramm 2023-12-02 19:34:48 +01:00
parent 473aa5b3b5
commit 5a3b430c8c
3 changed files with 15 additions and 7 deletions

View File

@ -30,6 +30,12 @@ jobs:
rm -rf api
ls -lah
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
@ -42,10 +48,8 @@ jobs:
type=semver,pattern={{version}}
- name: Build and push Docker image
uses: docker/login-action@v3
uses: docker/build-push-action@v5
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}

View File

@ -45,7 +45,7 @@ jobs:
type=semver,pattern={{version}}
- name: Build and push Docker image
uses: docker/login-action@v3
uses: docker/build-push-action@v5
with:
context: .
push: true

View File

@ -30,6 +30,12 @@ jobs:
rm -rf ui
ls -lah
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
@ -42,10 +48,8 @@ jobs:
type=semver,pattern={{version}}
- name: Build and push Docker image
uses: docker/login-action@v3
uses: docker/build-push-action@v5
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}