From 5b8f99ac58cfddd7946b12cfc5044e0a5e9f4f6a Mon Sep 17 00:00:00 2001 From: Lucas Ramage Date: Mon, 1 Nov 2021 10:43:10 -0400 Subject: [PATCH] Add fossa step to drone pipeline --- .drone.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index b338563..748118a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,7 +14,26 @@ steps: volumes: - name: docker path: /var/run/docker.sock - +- name: fossa + image: registry.suse.com/suse/sle15:15.3.17.8.1 + failure: ignore + environment: + FOSSA_API_KEY: + from_secret: FOSSA_API_KEY + commands: + - zypper -n install curl unzip + - "curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/spectrometer/master/install.sh | sh" + - fossa analyze + - fossa test + when: + instance: + - drone-publish.rancher.io + ref: + include: + - "refs/heads/master" + event: + - push + - tag - name: github_binary_release image: plugins/github-release settings: