Skip to content

Commit 0e5f83b

Browse files
committed
build: trigger docker workflow for new release
Signed-off-by: Phil Adams <[email protected]>
1 parent a066e14 commit 0e5f83b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/docker.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,27 @@ name: Docker Deploy
77

88
on:
99
release:
10-
types: [created]
10+
types:
11+
- published
1112
workflow_dispatch:
1213
# Allow this workflow to be triggered manually
1314

1415
jobs:
1516
deploy-docker-image:
17+
# We want to trigger this job ONLY for a published release
18+
# related to the "ibm-openapi-validator" package.
19+
if: "contains(github.ref_name, 'ibm-openapi-validator')"
1620
name: Deploy image
1721
runs-on: ubuntu-latest
1822

1923
steps:
24+
# Display some info about the build for debugging purposes.
25+
- name: Trigger info
26+
run: |
27+
echo "Build triggered by event: " ${{ github.event_name }}
28+
echo " git ref: " ${{ github.ref }}
29+
echo " git ref_name: " ${{ github.ref_name }}
30+
2031
- name: Checkout repository
2132
uses: actions/checkout@v4
2233

0 commit comments

Comments
 (0)