From 2ed8ae1978789fd8e98495c397fc19e9cf529257 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Fri, 1 Jul 2022 15:42:00 +0200 Subject: [PATCH] add drone-ci --- .drone.yml | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..67350f4 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,61 @@ +kind: pipeline +name: default +type: docker + +steps: + - name: build + image: docker:dind + volumes: + - name: dockersock + path: /var/run + environment: + DOCKER_USERNAME: + from_secret: docker_username + DOCKER_PASSWORD: + from_secret: docker_password + commands: + - sleep 5 # give docker enough time to start + - docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD + - ./debian/11/build.sh + - ./debian/12/build.sh + when: + branch: + - master + event: + - push + + - name: rebuild + image: docker:dind + volumes: + - name: dockersock + path: /var/run + environment: + DOCKER_USERNAME: + from_secret: docker_username + DOCKER_PASSWORD: + from_secret: docker_password + commands: + - sleep 5 # give docker enough time to start + - docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD + - ./build/rebuild.sh + when: + event: + - cron + +services: + - name: docker + image: docker:dind + privileged: true + volumes: + - name: dockersock + path: /var/run + +volumes: + - name: dockersock + temp: {} + +trigger: + branch: + - master + event: + - push