mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Fix Docker Image building with Steam Token Dumper, unify different Arches into one Dockerfile (#1845)
* Pass STEAM_TOKEN_DUMPER_TOKEN as --build-arg * Unify different ARCHs Dockerfiles
This commit is contained in:
24
hooks/build
Normal file
24
hooks/build
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
# no - in tag means we build amd64
|
||||
if [[ $DOCKER_TAG =~ "-" ]]; then
|
||||
case ${DOCKER_TAG#*-} in
|
||||
arm)
|
||||
BUILD_ARCH=arm
|
||||
TAG_ARCH="-arm32v7"
|
||||
;;
|
||||
arm64)
|
||||
BUILD_ARCH=arm64
|
||||
TAG_ARCH="-arm64v8"
|
||||
;;
|
||||
esac
|
||||
else
|
||||
BUILD_ARCH=x64
|
||||
# needs to be blank cause dotnet images have no suffix for amd64
|
||||
TAG_ARCH=
|
||||
fi
|
||||
|
||||
docker build -f $DOCKERFILE_PATH -t $IMAGE_NAME . \
|
||||
--build-arg STEAM_TOKEN_DUMPER_TOKEN=$STEAM_TOKEN_DUMPER_TOKEN \
|
||||
--build-arg BUILD_ARCH=$BUILD_ARCH \
|
||||
--build-arg TAG_ARCH=$TAG_ARCH
|
||||
Reference in New Issue
Block a user