Files
ArchiSteamFarm/hooks/build

14 lines
410 B
Plaintext
Raw Normal View History

2020-06-14 01:36:04 +02:00
#!/usr/bin/env sh
set -eu
2020-06-14 01:36:04 +02:00
asf_arch="$(echo "$DOCKER_TAG" | cut -d '-' -f 2)"
dotnet_arch=""
2020-06-14 01:36:04 +02:00
case "$asf_arch" in
"arm") dotnet_arch="-arm32v7" ;;
"arm64") dotnet_arch="-arm64v8" ;;
*) asf_arch="x64" ;;
esac
docker build -f "$DOCKERFILE_PATH" -t "$IMAGE_NAME" --build-arg "STEAM_TOKEN_DUMPER_TOKEN=${STEAM_TOKEN_DUMPER_TOKEN-}" --build-arg "ASF_ARCH=${asf_arch}" --build-arg "DOTNET_ARCH=${dotnet_arch}" .