Only update qemu-static container settings on x86_64
The image only support x86_64 so if you're running this role against an arm64 node, this breaks. Change-Id: Ied74ef9e4337346910c817ea5f3540af9ccfdf0b
This commit is contained in:
parent
cb0b00ed87
commit
655e88b7ba
@ -1,5 +1,6 @@
|
||||
- name: Update qemu-static container settings
|
||||
command: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||
when: ansible_architecture == 'x86_64'
|
||||
|
||||
- name: Create builder
|
||||
command: "docker buildx create --name mybuilder --driver-opt network=host{% if buildset_registry is defined %} --config /etc/buildkit/buildkitd.toml {% endif %}"
|
||||
|
@ -2,6 +2,7 @@
|
||||
command: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||
environment:
|
||||
DOCKER_CLI_EXPERIMENTAL: enabled
|
||||
when: ansible_architecture == 'x86_64'
|
||||
|
||||
- name: Create builder
|
||||
command: "docker buildx create --name mybuilder --driver-opt network=host{% if buildset_registry is defined %} --config /etc/buildkit/buildkitd.toml {% endif %}"
|
||||
|
Loading…
Reference in New Issue
Block a user