-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.3 KB
/
license_finder.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Run License Finder
name: license_finder
on:
#pull_request:
# types: [ opened, reopened ]
#push:
# # Trigger on any branch push
# branches:
# - '**' # Match any branch
workflow_dispatch:
branches:
- '**' # Match any branch
workflow_call:
# Setting environment variables which can be used in the entire workflow (only in the current one)
env:
# Used for build_docker job
CONTAINER_REGISTRY: registry.gitlab.com
jobs:
license_finder:
runs-on: 'ubuntu-latest'
steps:
# Checking out the GitHub repository on the runner
- name: Checkout
uses: 'actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608'
# Uses github action to pull docker image and run commands
- name: Run the build process with Docker
uses: 'addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185'
with:
username: ${{ vars.LICENSE_FINDER_GITLAB_REGISTRY_USERNAME }}
password: ${{ secrets.LICENSE_FINDER_GITLAB_REGISTRY_PASSWORD }}
registry: ${{ env.CONTAINER_REGISTRY }}
image: ${{ env.CONTAINER_REGISTRY }}/crosslend/docker/license-finder/main
run: |
source /usr/share/rvm/scripts/rvm; license_finder --prepare --composer-check-require-only=true --decisions-file=/doc/dependency_decisions.yml --python-version=3