mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 15:14:41 +00:00
14 lines
565 B
Bash
Executable file
14 lines
565 B
Bash
Executable file
#!/usr/bin/env sh
|
|
# This hook is used by Docker Hub as an instruction on how to build the ASF release
|
|
# See: https://docs.docker.com/docker-hub/builds/advanced
|
|
set -eu
|
|
|
|
asf_arch="$(echo "$DOCKER_TAG" | rev | cut -d '-' -f 1 | rev)"
|
|
|
|
case "$asf_arch" in
|
|
"arm") dotnet_arch="-arm32v7" ;;
|
|
"arm64") dotnet_arch="-arm64v8" ;;
|
|
*) dotnet_arch=""; 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}" .
|