From 698cf069a1ff4dc24d54d8d6ae32a7352c924809 Mon Sep 17 00:00:00 2001 From: Michael Kim Date: Fri, 27 Sep 2024 15:15:30 +0900 Subject: [PATCH] Change image tag generation rules when creating docker images --- packages/validator/docker-build.sh | 2 +- packages/validator/docker-buildx.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/validator/docker-build.sh b/packages/validator/docker-build.sh index 2dc3160..5026c9a 100755 --- a/packages/validator/docker-build.sh +++ b/packages/validator/docker-build.sh @@ -1,6 +1,6 @@ #!/bin/bash -TAG_NANE="$(git rev-parse --abbrev-ref HEAD)-$(git rev-parse --short=6 HEAD)" +TAG_NANE="$(git rev-parse --short=12 HEAD)" echo "TAG_NANE=$TAG_NANE" docker build -t bosagora/acc-bridge-validator:"$TAG_NANE" -f Dockerfile --push . diff --git a/packages/validator/docker-buildx.sh b/packages/validator/docker-buildx.sh index 94308be..a9974a2 100755 --- a/packages/validator/docker-buildx.sh +++ b/packages/validator/docker-buildx.sh @@ -1,6 +1,6 @@ #!/bin/bash -TAG_NANE="$(git rev-parse --abbrev-ref HEAD)-$(git rev-parse --short=6 HEAD)" +TAG_NANE="$(git rev-parse --short=12 HEAD)" echo "TAG_NANE=$TAG_NANE" docker buildx build --platform=linux/amd64,linux/arm64 -t bosagora/acc-bridge-validator:"$TAG_NANE" -f Dockerfile --push .