♻️ 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

@@ -656,24 +656,6 @@ teardown() {
/usr/local/bin/docker logout"
}
@test "it supports building multiple platforms" {
export GITHUB_REF='refs/heads/main'
export INPUT_PLATFORMS='linux/amd64,linux/arm64'
run /entrypoint.sh
expectStdOutContains "::set-output name=tag::latest"
expectMockCalledContains "/usr/bin/sudo dd status=none of=/etc/docker/daemon.json
/usr/bin/sudo service docker restart
/usr/local/bin/docker login -u USERNAME --password-stdin
/usr/local/bin/docker buildx build --platform linux/amd64,linux/arm64 -t my/repository:latest .
/usr/local/bin/docker push my/repository:latest
/usr/local/bin/docker inspect --format={{index .RepoDigests 0}} my/repository:latest
/usr/local/bin/docker logout"
expectMockArgs '/usr/bin/sudo {"experimental": true}'
}
expectStdOutIs() {
local expected=$(echo "${1}" | tr -d '\n')
local got=$(echo "${output}" | tr -d '\n')