Skip to content

Commit da5e2ab

Browse files
committed
Push docker tag on successful package release
1 parent 884b1c0 commit da5e2ab

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ jobs:
8282
package_version=$(echo '${{ steps.changesets.outputs.publishedPackages }}' | jq -r '.[0].version')
8383
echo "package_version=${package_version}" >> "$GITHUB_OUTPUT"
8484
85+
# this triggers the publish workflow for the docker images
86+
- name: 🏷️ Create and push docker tag
87+
if: steps.changesets.outputs.published == 'true'
88+
run: |
89+
set -e
90+
git tag "v.docker.${{ steps.get_version.outputs.package_version }}"
91+
git push origin "v.docker.${{ steps.get_version.outputs.package_version }}"
92+
8593
- name: Update PR title with version
8694
if: steps.changesets.outputs.published != 'true'
8795
env:

0 commit comments

Comments
 (0)