♻️ Remove platforms options

Platform was in beta and turned out not to be usable.
This still needs some tinkering with Github actions, but this wouldn't happen here.
See https://github.com/actions/virtual-environments/issues/3090
This commit is contained in:
elgohr
2021-04-13 11:38:35 +02:00
parent 13c6c46d98
commit 184d5f4bcf
5 changed files with 2 additions and 49 deletions

View File

@@ -16,10 +16,6 @@ main() {
sanitize "${INPUT_PASSWORD}" "password"
fi
if uses "${INPUT_PLATFORMS}"; then
enableExperimentalDocker
fi
registryToLower
nameToLower
@@ -88,11 +84,6 @@ sanitize() {
fi
}
enableExperimentalDocker() {
echo $'{"experimental": true}' | sudo dd status=none of=/etc/docker/daemon.json
sudo service docker restart
}
registryToLower(){
INPUT_REGISTRY=$(echo "${INPUT_REGISTRY}" | tr '[A-Z]' '[a-z]')
}
@@ -199,12 +190,7 @@ build() {
for TAG in ${TAGS}; do
BUILD_TAGS="${BUILD_TAGS}-t ${INPUT_NAME}:${TAG} "
done
if uses "${INPUT_PLATFORMS}"; then
local PLATFORMS="--platform ${INPUT_PLATFORMS}"
docker buildx build ${PLATFORMS} ${INPUT_BUILDOPTIONS} ${BUILDPARAMS} ${BUILD_TAGS} ${CONTEXT}
else
docker build ${INPUT_BUILDOPTIONS} ${BUILDPARAMS} ${BUILD_TAGS} ${CONTEXT}
fi
docker build ${INPUT_BUILDOPTIONS} ${BUILDPARAMS} ${BUILD_TAGS} ${CONTEXT}
}
push() {