From 288045eb535f42ac147bf37a6c21d17f13a520fd 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 | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..9fa1715 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,81 @@ +kind: pipeline +type: docker +name: build + +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 + - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin + - ./debian/11/build.sh + - ./debian/12/build.sh + when: + branch: + - master + event: + - push + +services: + - name: docker + image: docker:dind + privileged: true + volumes: + - name: dockersock + path: /var/run + +volumes: + - name: dockersock + temp: {} + +trigger: + branch: + - master + event: + - push +--- +kind: pipeline +type: docker +name: rebuild + +steps: + - 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 + - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin + - ./build/rebuild.sh + +services: + - name: docker + image: docker:dind + privileged: true + volumes: + - name: dockersock + path: /var/run + +volumes: + - name: dockersock + temp: {} + +trigger: + event: + - cron + cron: + - rebuild