mirror of
https://github.com/elgohr/Publish-Docker-Github-Action.git
synced 2026-03-12 18:07:12 -04:00
♻️ 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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user