Skip to content

Commit 6f1ba4d

Browse files
committed
make docker workflow conditional and build the edge image
1 parent 272e00f commit 6f1ba4d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/docker.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
name: Docker build
1+
name: Docker build (edge)
22
on:
3-
push: { branches: test }
3+
workflow_run:
4+
workflows: [Test]
5+
branches: [test]
6+
types: [completed]
47

58
jobs:
69
docker:
710
runs-on: ubuntu-latest
11+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
812
steps:
913
- name: Checkout
1014
uses: actions/checkout@v4
@@ -23,4 +27,4 @@ jobs:
2327
context: .
2428
platforms: linux/amd64,linux/arm64
2529
push: true
26-
tags: dannyben/bashly:test
30+
tags: dannyben/bashly:edge

0 commit comments

Comments
 (0)