📦 fix something in packaging

main
_ 2021-07-10 22:17:23 +00:00
parent 0f7c95f79f
commit b1a370385b
1 changed files with 3 additions and 2 deletions

View File

@ -4,12 +4,13 @@ set -euo pipefail
GIT_COMMIT=$(git rev-parse main) GIT_COMMIT=$(git rev-parse main)
GIT_COMMIT_SHORT=$(echo "$GIT_COMMIT" | cut -b -8) GIT_COMMIT_SHORT=$(echo "$GIT_COMMIT" | cut -b -8)
DOCKER_TAG="ptth:latest"
mkdir -p app_packages mkdir -p app_packages
git archive --format=tar "$GIT_COMMIT" | sudo docker build -t ptth:latest --build-arg "git_version=$GIT_COMMIT" - git archive --format=tar "$GIT_COMMIT" | sudo docker build -t "$DOCKER_TAG" --build-arg "git_version=$GIT_COMMIT" -
sudo docker run --rm ptth:latest tar -c \ sudo docker run --rm "$DOCKER_TAG" tar -c \
ptth_relay \ ptth_relay \
handlebars \ handlebars \
git_version.txt \ git_version.txt \