Skip to content

Commit a748f3b

Browse files
committed
update Docker workflow
1 parent 31b5861 commit a748f3b

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/containers.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ jobs:
2121
on-success:
2222
name: Build, Test and Push Docker Image to DockerHub
2323
runs-on: ubuntu-24.04
24-
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' || github.event_name == 'push' }}
24+
if: |
25+
github.event_name == 'push' ||
26+
github.event_name == 'workflow_dispatch' ||
27+
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')
2528
permissions:
2629
packages: write
2730
contents: read
@@ -50,7 +53,7 @@ jobs:
5053

5154
- name: Extract metadata (tags, labels) for Docker
5255
id: meta
53-
uses: docker/metadata-action@v4.0.1
56+
uses: docker/metadata-action@v5
5457
with:
5558
images: |
5659
${{ env.DOCKER_REPOSITORY }}
@@ -60,7 +63,7 @@ jobs:
6063
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
6164
6265
- name: Build and push Docker images
63-
uses: docker/build-push-action@v3.3.0
66+
uses: docker/build-push-action@v3
6467
with:
6568
context: .
6669
push: true

0 commit comments

Comments
 (0)