cicd: fix docker image creation
This commit is contained in:
parent
43bfc64c43
commit
579012254d
39
.drone.yml
39
.drone.yml
|
@ -6,13 +6,10 @@ platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
workspace:
|
|
||||||
path: /opt
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
host:
|
host:
|
||||||
path: /var/run/
|
path: /var/run/docker.sock
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: docker
|
- name: docker
|
||||||
|
@ -24,13 +21,13 @@ services:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: setup_image
|
- name: setup_image
|
||||||
image: docker:dind
|
image: docker
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run
|
path: /var/run/docker.sock
|
||||||
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
|
||||||
|
|
||||||
- name: wait_for_image
|
- name: wait_for_image
|
||||||
image: alpine
|
image: alpine
|
||||||
|
@ -46,10 +43,8 @@ steps:
|
||||||
- docker images
|
- docker images
|
||||||
|
|
||||||
- name: setup_conan
|
- name: setup_conan
|
||||||
volumes:
|
image: ubuntu_amd64:latest
|
||||||
- name: dockersock
|
pull: if-not-exists
|
||||||
path: /var/run
|
|
||||||
image: ubuntu_amd64
|
|
||||||
environment:
|
environment:
|
||||||
CONAN_REVISIONS_ENABLED: "1"
|
CONAN_REVISIONS_ENABLED: "1"
|
||||||
commands:
|
commands:
|
||||||
|
@ -57,7 +52,8 @@ steps:
|
||||||
- pip install conan==2.5.0
|
- pip install conan==2.5.0
|
||||||
|
|
||||||
- name: echo_info
|
- name: echo_info
|
||||||
image: ubuntu_amd64
|
image: ubuntu_amd64:latest
|
||||||
|
pull: if-not-exists
|
||||||
commands:
|
commands:
|
||||||
- pip --version
|
- pip --version
|
||||||
- python --version
|
- python --version
|
||||||
|
@ -70,7 +66,8 @@ steps:
|
||||||
- clang-format --version
|
- clang-format --version
|
||||||
|
|
||||||
- name: build_gcc
|
- name: build_gcc
|
||||||
image: ubuntu_amd64
|
image: ubuntu_amd64:latest
|
||||||
|
pull: if-not-exists
|
||||||
commands:
|
commands:
|
||||||
- rm -rv ./build
|
- rm -rv ./build
|
||||||
- export CC=$(which gcc)
|
- export CC=$(which gcc)
|
||||||
|
@ -84,7 +81,8 @@ steps:
|
||||||
- ./build/Release/modules/light/light
|
- ./build/Release/modules/light/light
|
||||||
|
|
||||||
- name: build_clang
|
- name: build_clang
|
||||||
image: ubuntu_amd64
|
image: ubuntu_amd64:latest
|
||||||
|
pull: if-not-exists
|
||||||
commands:
|
commands:
|
||||||
- rm -rv ./build
|
- rm -rv ./build
|
||||||
- export CC=$(which clang)
|
- export CC=$(which clang)
|
||||||
|
@ -98,16 +96,19 @@ steps:
|
||||||
- ./build/Release/modules/light/light
|
- ./build/Release/modules/light/light
|
||||||
|
|
||||||
- name: static_analysis
|
- name: static_analysis
|
||||||
image: ubuntu_amd64
|
image: ubuntu_amd64:latest
|
||||||
|
pull: if-not-exists
|
||||||
commands:
|
commands:
|
||||||
- echo "[TODO] Implement static analysis"
|
- echo "[TODO] Implement static analysis"
|
||||||
|
|
||||||
- name: run_tests
|
- name: run_tests
|
||||||
image: ubuntu_amd64
|
image: ubuntu_amd64:latest
|
||||||
|
pull: if-not-exists
|
||||||
commands:
|
commands:
|
||||||
- echp "[TODO] Implement tests"
|
- echp "[TODO] Implement tests"
|
||||||
|
|
||||||
- name: report_coverage
|
- name: report_coverage
|
||||||
image: ubuntu_amd64
|
image: ubuntu_amd64:latest
|
||||||
|
pull: if-not-exists
|
||||||
commands:
|
commands:
|
||||||
- echp "[TODO] Implement coverage report"
|
- echp "[TODO] Implement coverage report"
|
||||||
|
|
Loading…
Reference in New Issue