Skip to content

Commit fa71513

Browse files
authored
Fix the docker-merge workflow (#24)
1 parent 0908509 commit fa71513

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.github/workflows/docker-build-and-publish-linux-amd64.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,8 @@ jobs:
2323
platforms: linux/amd64
2424
push: true
2525
tags: ${{ vars.DOCKERHUB_IMAGE }}:nightly-linux-amd64
26+
27+
merge:
28+
needs: [docker]
29+
uses: ./.github/workflows/docker-merge.yml
30+
secrets: inherit

.github/workflows/docker-build-and-publish-linux-arm64.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,8 @@ jobs:
2323
platforms: linux/arm64
2424
push: true
2525
tags: ${{ vars.DOCKERHUB_IMAGE }}:nightly-linux-arm64
26+
27+
merge:
28+
needs: [docker]
29+
uses: ./.github/workflows/docker-merge.yml
30+
secrets: inherit

.github/workflows/docker-merge.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: Merge images
22

33
on:
4-
workflow_run: # Fires when any of the specified workflows complete
5-
workflows: ["Build and Publish Linux ARM64 Image", "Build and Publish Linux AMD64 Image"]
6-
types: [completed]
4+
workflow_dispatch: # allow explicit dispatches from arch-specific builds
5+
workflow_call: # allow this workflow to be called by another workflow
76

87
env:
98
IMAGE: ${{ vars.DOCKERHUB_IMAGE }}
@@ -15,7 +14,6 @@ concurrency: # ensure only one merge runs at a time
1514

1615
jobs:
1716
merge:
18-
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == vars.NIGHTLY_BRANCH }}
1917
runs-on: ubuntu-latest
2018
steps:
2119
- name: Login to DockerHub

0 commit comments

Comments
 (0)