cicd: attempt fix docker dind

This commit is contained in:
light7734 2024-10-14 13:18:51 +03:30
parent 35a47c27b3
commit 84c931ce47
Signed by: light7734
GPG Key ID: 37FDF7099B2AB7A7
1 changed files with 14 additions and 6 deletions

View File

@ -9,16 +9,24 @@ platform:
workspace: workspace:
path: /opt path: /opt
volumes:
- name: dockersock
temp: {}
services: services:
- name: docker - name: docker
image: docker:dind image: docker:dind
privileged: true privileged: true
volumes:
- name: dockersock
path: /var/run
steps: steps:
- name: setup_image - name: setup_image
image: docker:latest image: docker:dind
depends_on: volumes:
- docker - name: dockersock
path: /var/run
commands: commands:
- until docker info; do echo "Waiting for Docker daemon..."; sleep 1; done - until docker info; do echo "Waiting for Docker daemon..."; sleep 1; done
- docker build -t ubuntu_amd64 -f ./tools/docker/linux_amd64 . - docker build -t ubuntu_amd64 -f ./tools/docker/linux_amd64 .