use correct path to buildx

This commit is contained in:
Kai Kriegel 2021-12-14 00:13:53 +00:00
parent 8f4cf74819
commit 56afc2c7d4

View File

@ -109,12 +109,12 @@ build:docker-development:
before_script: before_script:
- echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY --username - echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY --username
$CI_REGISTRY_USER --password-stdin $CI_REGISTRY_USER --password-stdin
- wget -O /usr/libexec/docker/cli-plugins/docker-buildx - wget -O /usr/bin/docker-buildx
https://github.com/docker/buildx/releases/download/${BUILDX_VERSION}/buildx-${BUILDX_VERSION}.${BUILDX_ARCH} https://github.com/docker/buildx/releases/download/${BUILDX_VERSION}/buildx-${BUILDX_VERSION}.${BUILDX_ARCH}
- chmod +x /usr/libexec/docker/cli-plugins/docker-buildx - chmod +x /usr/bin/docker-buildx
script: script:
- docker buildx create --use - docker-buildx create --use
- docker buildx build - docker-buildx build
--platform linux/386,linux/amd64,linux/amd64,linux/arm/v7,linux/arm64/v8 --platform linux/386,linux/amd64,linux/amd64,linux/arm/v7,linux/arm64/v8
--tag ${CI_REGISTRY_IMAGE}:test --tag ${CI_REGISTRY_IMAGE}:test
--push --push