license_finder #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
shell: bash | |
run: | | |
license_finder version | |