Added automatic license export on dev push/merge

ref #59
This commit is contained in:
Nicolai Ort 2020-12-30 20:40:28 +01:00
parent 395b0101a8
commit 18e3ef9a79
1 changed files with 16 additions and 5 deletions

View File

@ -37,11 +37,22 @@ steps:
tags:
- dev
registry: registry.odit.services
when:
branch:
- dev
event:
- push
- name: run full license export
image: node:alpine
depends_on: [clone]
commands:
- yarn
- yarn licenses:export
- 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
trigger:
branch: