From a5c89c7354c7a1e250df0cba6baaa9c6fca6ec67 Mon Sep 17 00:00:00 2001 From: badblocks <4161747+badbl0cks@users.noreply.github.com> Date: Mon, 22 Apr 2024 14:38:09 -0700 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ddc647d..0afa0e1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,9 +51,23 @@ jobs: for TAG in "${BUILD_TAGS[@]}"; do 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: "