mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-10-26 11:03:21 +00:00
Tag tidying
This commit is contained in:
1 file changed
+3
-2
@@ -54,6 +54,7 @@ jobs:
|
|||||||
id: meta
|
id: meta
|
||||||
run: |
|
run: |
|
||||||
VERSION=$(jq -r '.version' manifest.json)
|
VERSION=$(jq -r '.version' manifest.json)
|
||||||
|
MAJOR_MINOR=$(echo "${VERSION}" | cut -d. -f1,2)
|
||||||
SHORT_SHA=$(git rev-parse --short HEAD)
|
SHORT_SHA=$(git rev-parse --short HEAD)
|
||||||
IMAGE="ghcr.io/${{ github.repository_owner }}/livesync-cli"
|
IMAGE="ghcr.io/${{ github.repository_owner }}/livesync-cli"
|
||||||
|
|
||||||
@@ -61,10 +62,10 @@ jobs:
|
|||||||
TAGS=""
|
TAGS=""
|
||||||
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
|
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
|
||||||
# Stable release builds
|
# Stable release builds
|
||||||
TAGS="${IMAGE}:${VERSION}-cli,${IMAGE}:latest,${IMAGE}:${VERSION}-sha-${SHORT_SHA}-cli"
|
TAGS="${IMAGE}:${VERSION}-cli,${IMAGE}:${MAJOR_MINOR}-cli,${IMAGE}:latest,${IMAGE}:${VERSION}-sha-${SHORT_SHA}-cli"
|
||||||
elif [[ "${{ github.ref }}" == refs/heads/main ]]; then
|
elif [[ "${{ github.ref }}" == refs/heads/main ]]; then
|
||||||
# Bleeding-edge / nightly builds
|
# Bleeding-edge / nightly builds
|
||||||
TAGS="${IMAGE}:edge,${IMAGE}:${VERSION}-dev-sha-${SHORT_SHA}-cli"
|
TAGS="${IMAGE}:edge"
|
||||||
else
|
else
|
||||||
# Other branches / manual run fallback
|
# Other branches / manual run fallback
|
||||||
TAGS="${IMAGE}:${VERSION}-dev-sha-${SHORT_SHA}-cli"
|
TAGS="${IMAGE}:${VERSION}-dev-sha-${SHORT_SHA}-cli"
|
||||||
|
|||||||
Reference in new issue
Block a user