Add insecure entitlement for buildkitd.

This commit is contained in:
viferga 2019-09-17 23:44:15 -08:00
parent eba0f090c4
commit 3a6feea0e7

@ -47,12 +47,13 @@ before_script:
- sudo mv daemon.json /etc/docker/daemon.json
- sudo systemctl restart docker
- docker version
- docker build --platform=local -o . git://github.com/docker/buildx > /dev/null 2>&1
- docker build --platform=local -o . git://github.com/docker/buildx
- mkdir -p ~/.docker/cli-plugins/
- mv buildx ~/.docker/cli-plugins/docker-buildx
# Run the build and packaging
script:
- docker buildx create --use --name insecure-builder --buildkitd-flags '--allow-insecure-entitlement security.insecure'
- docker buildx build --allow security.insecure --build-arg METACALL_GUIX_VERSION="1.0.1" --build-arg METACALL_GUIX_ARCH="x86_64" .
# Upload the built images to DockerHub