mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-29 08:44:15 +01:00
19 lines
474 B
Bash
Executable File
19 lines
474 B
Bash
Executable File
#!/bin/bash
|
|
|
|
GIT_SHA=$(git rev-parse --short HEAD)
|
|
GIT_TAG=$(git describe --tags --exact-match 2> /dev/null)
|
|
|
|
if [ ! -z $GIT_TAG ]; then
|
|
__SC64_VERSION=$(printf "%.7q\ %.7q" $GIT_SHA $GIT_TAG)
|
|
else
|
|
__SC64_VERSION=$(printf "%.7q\ develop" $GIT_SHA)
|
|
fi
|
|
|
|
docker run \
|
|
--rm \
|
|
--user $(id -u):$(id -g) \
|
|
--mount type=bind,src="$(pwd)",target="/workdir" \
|
|
-e __SC64_VERSION="$__SC64_VERSION" \
|
|
ghcr.io/polprzewodnikowy/sc64env:v1.2 \
|
|
./build.sh $@
|