Update build.yml

This commit is contained in:
badblocks 2024-04-22 14:38:09 -07:00 committed by GitHub
parent 67f351b3a8
commit a5c89c7354
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,8 +52,22 @@ jobs:
BUILD_TAGS+=("${TAG}-${TIMESTAMP}")
done
if [[ ${{ github.ref_name }} == "unstable" ]]; then
BUILD_TAGS+=("${MAJOR_VERSION}-unstable" "${MAJOR_VERSION}-unstable-${TIMESTAMP}")
BUILD_TAGS+=("unstable")
fi
elif [[ ${{ github.ref_name }} == "testing" ]]; then
BUILD_TAGS+=("${MAJOR_VERSION}-testing" "${MAJOR_VERSION}-testing-${TIMESTAMP}")
BUILD_TAGS+=("testing")
fi
else
BUILD_TAGS+=("${MAJOR_VERSION}" "${MAJOR_VERSION}-${TIMESTAMP}")
BUILD_TAGS+=("${MAJOR_VERSION}-stable" "${MAJOR_VERSION}-stable-${TIMESTAMP}")
BUILD_TAGS+=("latest" "stable")
fi
fi
BUILD_TAGS+=("${TIMESTAMP}")
BUILD_TAGS+=("latest")
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
echo "Generated the following commit tags: "