From 69d0d22a7c981a2fbf974e2a7555be6e72478a64 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Mon, 22 Feb 2021 18:20:50 +0100 Subject: [PATCH] Add .drone config file Signed-off-by: Manuel Buil --- .drone.yml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..85a6a50 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,50 @@ +--- +kind: pipeline +type: docker +name: linux-amd64 + +platform: + os: linux + arch: amd64 + +steps: +- name: build + pull: always + image: rancher/hardened-build-base:v1.15.2b5 + commands: + - make DRONE_TAG=${DRONE_TAG} + volumes: + - name: docker + path: /var/run/docker.sock + +- name: publish + image: rancher/hardened-build-base:v1.15.2b5 + commands: + - docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD + - make DRONE_TAG=${DRONE_TAG} image-push image-manifest + environment: + DOCKER_PASSWORD: + from_secret: docker_password + DOCKER_USERNAME: + from_secret: docker_username + volumes: + - name: docker + path: /var/run/docker.sock + when: + event: + - tag + +- name: scan + image: rancher/hardened-build-base:v1.15.2b5 + commands: + - make DRONE_TAG=${DRONE_TAG} image-scan + volumes: + - name: docker + path: /var/run/docker.sock + +volumes: +- name: docker + host: + path: /var/run/docker.sock + +...