Skip to content

Commit 4e837a6

Browse files
committed
👷 [#maykinmedia/open-api-framework#195] add stable tag with last version
1 parent b39a68d commit 4e837a6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,12 @@ jobs:
6060

6161
- name: Push the Docker image
6262
run: docker push ${{ inputs.docker-image-name }}:${{ steps.vars.outputs.tag }}
63+
64+
- name: Push stable tag
65+
if: >
66+
startsWith(github.ref, 'refs/tags/') &&
67+
matches(github.ref, '^refs/tags/v?[0-9]+\\.[0-9]+(\\.[0-9]+)?$')
68+
run: |
69+
docker tag ${{ inputs.docker-image-name }}:${{ steps.vars.outputs.tag }} \
70+
${{ inputs.docker-image-name }}:stable
71+
docker push ${{ inputs.docker-image-name }}:stable

0 commit comments

Comments
 (0)