2023-06-11 15:24:57 +02:00
|
|
|
name: Docker CI
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
secrets:
|
|
|
|
SONAR_TOKEN:
|
|
|
|
required: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
ci:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out repository code
|
2023-09-05 19:43:51 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-06-11 15:24:57 +02:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- uses: hadolint/hadolint-action@v3.1.0
|
|
|
|
with:
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
output-file: hadolint.out
|
|
|
|
format: sonarqube
|
|
|
|
no-fail: true
|
|
|
|
- name: SonarCloud Scan
|
|
|
|
uses: SonarSource/sonarcloud-github-action@master
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|