From 17f2e8b3eb9c069c122f2d28d2eea34cbfa07046 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Thu, 18 Aug 2022 21:47:02 +0200 Subject: [PATCH] ci: Add Drone configuration --- .drone.yml | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..2d110b1 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,55 @@ +--- +kind: pipeline +type: docker +name: default + +services: + - name: docker + image: docker:dind + privileged: true + volumes: + - name: dockersock + path: /var/run + +steps: + - name: "build:executable" + image: crystallang/crystal:1.5.0 + volumes: + - name: cache + path: /stupid + commands: + # Debug + - pwd + - crystal version + - shards version + # Build + - make build + + - name: "build:docker-image:" + image: docker:20.10.16-dind + volumes: + - name: dockersock + path: /var/run + - name: cache + path: /stupid + commands: + - apk install make + - 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: {} +#