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 4bb6044 commit 5594c0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/server/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-save-purchase:"$TAG_NANE" -f Dockerfile --push .
2 changes: 1 addition & 1 deletion packages/server/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-save-purchase:"$TAG_NANE" -f Dockerfile --push .
Expand Down

0 comments on commit 5594c0b

Please sign in to comment.