This commit is contained in:
charlesgauthereau
2026-03-06 21:45:43 +01:00
parent 9e22160b16
commit 9f0b1a172c
2 changed files with 10 additions and 9 deletions
+8 -7
View File
@@ -133,26 +133,27 @@ jobs:
VERSION="${{ inputs.version }}" VERSION="${{ inputs.version }}"
IFS='.' read -r MAJOR MINOR PATCH <<< "$VERSION" IFS='.' read -r MAJOR MINOR PATCH <<< "$VERSION"
TAGS="$VERSION" echo "VERSION_TAG=$VERSION" >> $GITHUB_OUTPUT
if [ -n "$MINOR" ]; then if [ -n "$MINOR" ]; then
TAGS="$TAGS $MAJOR.$MINOR" echo "MINOR_TAG=$MAJOR.$MINOR" >> $GITHUB_OUTPUT
fi fi
if [ -n "$MAJOR" ]; then if [ -n "$MAJOR" ]; then
TAGS="$TAGS $MAJOR" echo "MAJOR_TAG=$MAJOR" >> $GITHUB_OUTPUT
fi fi
if [ "${{ inputs.add_latest }}" = "true" ]; then if [ "${{ inputs.add_latest }}" = "true" ]; then
TAGS="$TAGS latest" echo "LATEST_TAG=latest" >> $GITHUB_OUTPUT
fi fi
echo "tags=$TAGS" >> $GITHUB_OUTPUT
- name: Extract Docker metadata - name: Extract Docker metadata
id: meta id: meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: ${{ inputs.image_name }} images: ${{ inputs.image_name }}
tags: | tags: |
type=raw,value=${{ steps.tags.outputs.tags }} type=raw,value=${{ steps.tags.outputs.VERSION_TAG }}
type=raw,value=${{ steps.tags.outputs.MINOR_TAG }}
type=raw,value=${{ steps.tags.outputs.MAJOR_TAG }}
type=raw,value=${{ steps.tags.outputs.LATEST_TAG }}
- name: Create and push manifest list - name: Create and push manifest list
working-directory: /tmp/digests working-directory: /tmp/digests
+1 -1
View File
@@ -120,7 +120,7 @@ jobs:
- finalize-release - finalize-release
uses: ./.github/workflows/discord.yml uses: ./.github/workflows/discord.yml
with: with:
release_tag: ${{ needs.create-release.outputs.draft_tag }} release_tag: ${{ needs.create-release.outputs.version }}
discord_title: "New Release" discord_title: "New Release"
discord_color: 3066993 discord_color: 3066993
discord_footer: "Portabase" discord_footer: "Portabase"