summaryrefslogtreecommitdiff
path: root/Justfile
diff options
context:
space:
mode:
authortranch <tranch.xiao@gmail.com>2026-07-28 02:08:21 +0800
committertranch <tranch.xiao@gmail.com>2026-07-28 02:08:21 +0800
commit6aee80a6d0e7a627f7966c8b00fc3acf1264b72b (patch)
tree740178183bf8648055ec79706896f123027273ab /Justfile
parentb8e36fd2f8ecef585f98b1ef10be05a168764704 (diff)
downloadAeroCore-OS-6aee80a6d0e7a627f7966c8b00fc3acf1264b72b.tar.gz
AeroCore-OS-6aee80a6d0e7a627f7966c8b00fc3acf1264b72b.zip
fix: avoid duplicate date in image version label
Diffstat (limited to 'Justfile')
-rw-r--r--Justfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Justfile b/Justfile
index af61316..8161c52 100644
--- a/Justfile
+++ b/Justfile
@@ -110,8 +110,8 @@ sudoif command *args:
# $target_image - The tag you want to apply to the image (default: $image_name).
# $tag - The tag for the image (default: $default_tag).
#
-# The script constructs the version string using the tag and the current date.
-# If the git working directory is clean, it also includes the short SHA of the current HEAD.
+# If the git working directory is clean, it appends the short SHA of the current HEAD
+# to the version tag supplied by the build environment.
#
# just build $target_image $tag
#
@@ -141,7 +141,7 @@ build $target_image=image_name $tag=default_tag:
LABELS+=("--label" "org.opencontainers.image.documentation=https://raw.githubusercontent.com/{{ repo_organization }}/{{ image_name }}/${GIT_SHA}/README.md")
LABELS+=("--label" "org.opencontainers.image.source=https://github.com/{{ repo_organization }}/{{ image_name }}/blob/${GIT_SHA}/Containerfile")
LABELS+=("--label" "org.opencontainers.image.url=https://github.com/{{ repo_organization }}/{{ image_name }}/tree/${GIT_SHA}")
- LABELS+=("--label" "org.opencontainers.image.version={{ VERSION_TAG }}.$(date +%Y%m%d)-${GIT_SHA}")
+ LABELS+=("--label" "org.opencontainers.image.version={{ VERSION_TAG }}-${GIT_SHA}")
fi
# Image metadata for https://artifacthub.io/ - This is optional but is highly recommended so we all can get a index of all the custom images