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 ca9b8d6 commit fa1acaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/relay/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-relay:"$TAG_NANE" -f Dockerfile --push .
2 changes: 1 addition & 1 deletion packages/relay/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-relay:"$TAG_NANE" -f Dockerfile --push .
Expand Down

0 comments on commit fa1acaa

Please sign in to comment.