Skip to content

Commit

Permalink
fix tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
m2Giles committed Nov 13, 2024
1 parent 6d23173 commit 3581752
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,11 @@ rechunk image="bluefin" tag="latest" flavor="main" ghcr="0" pipeline="0":
fedora_version=$(just sudoif podman inspect $CREF | jq -r '.[].Config.Labels["ostree.linux"]' | grep -oP 'fc\K[0-9]+')

# Label Version
VERSION="${tag}-${fedora_version}.$(date +%Y%m%d)"
if [[ "{{ tag }}" =~ stable ]]; then
VERSION="${fedora_version}.$(date +%Y%m%d)"
else
VERSION="${tag}-${fedora_version}.$(date +%Y%m%d)"
fi

# Cleanup Space during Github Action
if [[ "{{ ghcr }}" == "1" ]]; then
Expand Down Expand Up @@ -768,8 +772,9 @@ generate-build-tags image="bluefin" tag="latest" flavor="main" kernel_pin="" ghc
IMAGE_NAME=$(just image_name {{ image }} {{ tag }} {{ flavor }})
# Use Build Version from Rechunk
if [[ -z "${version:-}" ]]; then
version="${FEDORA_VERSION}.$(date +%Y%m%d)"
version="{{ tag }}-${FEDORA_VERSION}.$(date +%Y%m%d)"
fi
version=${version#{{ tag }}-}

# Arrays for Tags
BUILD_TAGS=()
Expand All @@ -785,7 +790,7 @@ generate-build-tags image="bluefin" tag="latest" flavor="main" kernel_pin="" ghc

# Convenience Tags
if [[ "{{ tag }}" =~ stable ]]; then
BUILD_TAGS+=("stable-daily" "stable-daily-${version}" "stable-daily-${version:3}")
BUILD_TAGS+=("stable-daily" "${version}" "stable-daily-${version}" "stable-daily-${version:3}")
else
BUILD_TAGS+=("{{ tag }}" "{{ tag }}-${version}" "{{ tag }}-${version:3}")
fi
Expand Down

0 comments on commit 3581752

Please sign in to comment.