Skip to content

Commit 725a200

Browse files
Merge pull request #14 from immobiliare/fix/try-new-publish-release
fix(ci): try new publish release
2 parents 883dbb1 + a6073f9 commit 725a200

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
name: publish
22

33
on:
4-
push:
5-
tags:
6-
- '*'
4+
release:
5+
types: [published]
6+
77
env:
88
TEST_TAG: ghcr.io/immobiliare/inca:test
99
LATEST_TAG: ghcr.io/immobiliare/inca:latest
10+
NEW_TAG: ghcr.io/immobiliare/inca:${{ github.event.release.tag_name }}
1011

1112
jobs:
1213
publish:
@@ -34,5 +35,5 @@ jobs:
3435
with:
3536
context: .
3637
platforms: linux/amd64,linux/arm64
37-
tags: ghcr.io/immobiliare/inca:${{ env.GITHUB_REF_NAME }}, ${{ env.LATEST_TAG }}
38+
tags: ${{ env.NEW_TAG }}, ${{ env.LATEST_TAG }}
3839
push: true

0 commit comments

Comments
 (0)