Skip to content

Commit

Permalink
Change image tag generation rules when creating docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKim20 committed Aug 29, 2024
1 parent e5aaf9b commit 44652f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/validator/docker-build.sh
Original file line number Diff line number Diff line change
@@ -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 .
2 changes: 1 addition & 1 deletion packages/validator/docker-buildx.sh
Original file line number Diff line number Diff line change
@@ -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 .
Expand Down

0 comments on commit 44652f0

Please sign in to comment.