Skip to content

Commit beb339a

Browse files
authored
Merge pull request #1488 from thewtex/69db-in-consistent-do
fix(docker): use fixed-length git short hash (9 chars) in image tags
2 parents bf04f93 + 24072e8 commit beb339a

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

itk_wasm_env.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if test "$OSTYPE" = "cygwin" || test "$OSTYPE" = "msys" || test "$OSTYPE" = "win
1010
export CXXFLAGS="/Zc:__cplusplus /Zc:preprocessor /DNOMINMAX"
1111
fi
1212

13-
export ITK_WASM_DEV_DOCKER_TAG=${ITK_WASM_DEV_DOCKER_TAG:-$(echo $(date '+%Y%m%d')-$(git rev-parse --short HEAD))}
13+
export ITK_WASM_DEV_DOCKER_TAG=${ITK_WASM_DEV_DOCKER_TAG:-$(echo $(date '+%Y%m%d')-$(git rev-parse --short=9 HEAD))}
1414

1515
export ITK_WASM_DCMTK_REPOSITORY=${ITK_WASM_DCMTK_REPOSITORY:-"https://github.com/InsightSoftwareConsortium/DCMTK"}
1616
# 20240311_DCMTK_PATCHES_FOR_ITK-wasm-3

src/docker/RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pixi run build-docker-images --with-debug
1818
pnpm clean && pnpm install && pnpm build && pnpm test
1919
2020
git add -- packages/core/typescript/itk-wasm/src/cli/default-image-tag.js
21-
git commit -m "feat(itk-wasm-cli): update default Docker image for $(date '+%Y%m%d')-$(git rev-parse --short HEAD)"
21+
git commit -m "feat(itk-wasm-cli): update default Docker image for $(date '+%Y%m%d')-$(git rev-parse --short=9 HEAD)"
2222
```
2323

2424
## Building with a Local ITK Repository

src/docker/itk-wasm-base/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ script_dir="`cd $(dirname $0); pwd`"
66
source "$script_dir/../oci_exe.sh"
77
exe=$(ociExe)
88

9-
TAG=$(date '+%Y%m%d')-$(git rev-parse --short HEAD)
10-
VCS_REF=$(git rev-parse --short HEAD)
9+
TAG=$(date '+%Y%m%d')-$(git rev-parse --short=9 HEAD)
10+
VCS_REF=$(git rev-parse --short=9 HEAD)
1111
VCS_URL="https://github.com/InsightSoftwareConsortium/ITK-Wasm"
1212
BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
1313

src/docker/itk-wasm/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ $cp_exe -a ../../../src/emscripten-module ./ITKWebAssemblyInterfaceModuleCopy/sr
1616
mkdir -p median-filter-pipelineCopy
1717
$cp_exe -a ../../../packages/core/typescript/itk-wasm/test/pipelines/median-filter-pipeline/{CMakeLists.txt,median-filter-test.cxx} ./median-filter-pipelineCopy
1818

19-
TAG=$(date '+%Y%m%d')-$(git rev-parse --short HEAD)
20-
VCS_REF=$(git rev-parse --short HEAD)
19+
TAG=$(date '+%Y%m%d')-$(git rev-parse --short=9 HEAD)
20+
VCS_REF=$(git rev-parse --short=9 HEAD)
2121
VCS_URL="https://github.com/InsightSoftwareConsortium/ITK-Wasm"
2222
BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
2323

src/docker/push.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ for param; do
1919
done
2020
set -- "${newparams[@]}" # overwrites the original positional params
2121

22-
TAG=$(date '+%Y%m%d')-$(git rev-parse --short HEAD)
22+
TAG=$(date '+%Y%m%d')-$(git rev-parse --short=9 HEAD)
2323
host_arch=$(uname -m | sed -e 's/x86_64/amd64/' -e 's/aarch64/arm64/')
2424
other_arch=$(if [ "$host_arch" == "amd64" ]; then echo "arm64"; else echo "amd64"; fi)
2525

0 commit comments

Comments
 (0)