From c9378e6cae06dcb355bc05cae4370d70477b94be Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Wed, 30 Dec 2020 21:13:32 +0100 Subject: [PATCH] Added test pipeline for automatic license export ref #59 --- .drone.yml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index d8acb3c..52d8daa 100644 --- a/.drone.yml +++ b/.drone.yml @@ -42,7 +42,7 @@ steps: depends_on: [clone] commands: - yarn - - yarn licenses:export + - yarn licenses:full - name: push new licenses file to repo image: appleboy/drone-git-push settings: @@ -117,4 +117,27 @@ steps: from_secret: BOT_DRONE_KEY trigger: event: - - tag \ No newline at end of file + - tag + +--- +kind: pipeline +type: docker +name: export:licenses + +steps: + - name: run full license export + image: node:alpine + depends_on: [clone] + commands: + - yarn + - yarn licenses:full + - name: push new licenses file to repo + image: appleboy/drone-git-push + settings: + branch: dev + commit: true + commit_message: new license file version [CI SKIP] + author_email: bot@odit.services + remote: git@git.odit.services:lfk/backend.git + ssh_key: + from_secret: GITLAB_SSHKEY