This commit is contained in:
@@ -10,6 +10,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: prodesk
|
runs-on: prodesk
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -30,9 +31,10 @@ jobs:
|
|||||||
TAGS="calahilstudios/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest"
|
TAGS="calahilstudios/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest"
|
||||||
TAGS="$TAGS calahilstudios/${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ github.sha }}"
|
TAGS="$TAGS calahilstudios/${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ github.sha }}"
|
||||||
|
|
||||||
# Only add tag if this is a v* tag push
|
# Add version tag if this is a v* tag push
|
||||||
if [[ "${GITHUB_REF}" == refs/tags/v* ]]; then
|
if [[ "${{ github.ref }}" == refs/tags/v* ]]; then
|
||||||
TAGS="$TAGS calahilstudios/${{ github.repository_owner }}/${{ github.event.repository.name }}:${GITHUB_REF#refs/tags/}"
|
TAG_NAME="${{ github.ref_name }}"
|
||||||
|
TAGS="$TAGS calahilstudios/${{ github.repository_owner }}/${{ github.event.repository.name }}:${TAG_NAME}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "TAGS=$TAGS" >> $GITHUB_ENV
|
echo "TAGS=$TAGS" >> $GITHUB_ENV
|
||||||
|
|||||||
Reference in New Issue
Block a user