📦 fix something in packaging
parent
0f7c95f79f
commit
b1a370385b
|
@ -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 \
|
||||||
|
|
Loading…
Reference in New Issue