From 0697e7bf9ac3dc84b10007bac6bee333b8c79cfa Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Fri, 19 Aug 2022 11:14:48 +0200 Subject: [PATCH] Split into two pipelines --- .drone.yml | 43 ++++++++++++++++++++++++++++++++----------- 1 file changed, 32 insertions(+), 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index c128ef2..d3dc3a3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,6 +12,12 @@ services: path: /var/run steps: + - name: "build:prepare" + commands: + # Debug + - pwd + - mkdir -p _artifacts + - name: "build:executable" image: crystallang/crystal:1.5.0 volumes: @@ -25,7 +31,7 @@ steps: # Build - make build - - name: "build:docker-image:" + - name: "build:docker-image" image: docker:20.10.16-dind volumes: - name: dockersock @@ -37,19 +43,34 @@ steps: - make docker-build - make docker-save > _artifacts/docker-image.tar - - name: "publish:docker-image" - image: docker:20.10.16-dind - volumes: - - name: dockersock - path: /var/run - commands: - - apk install make - - make docker-load < _artifacts/docker-image.tar - - make docker-push - volumes: - name: cache temp: {} - name: dockersock temp: {} # +--- +kind: pipeline +type: docker +name: default + +services: + - name: docker + image: docker:dind + privileged: true + volumes: + - name: dockersock + path: /var/run + +steps: + - name: "publish:docker-image" + image: docker:20.10.16-dind + volumes: + - name: dockersock + path: /var/run + commands: + - test -f _artifacts/docker-image.tar + - apk install make + - make docker-load < _artifacts/docker-image.tar + - make docker-push +