debug: ...
Some checks are pending
lint, build and push / build (push) Blocked by required conditions
Some checks are pending
lint, build and push / build (push) Blocked by required conditions
This commit is contained in:
parent
86ac9669b2
commit
ca8331c23d
1 changed files with 2 additions and 31 deletions
|
@ -9,37 +9,6 @@ on:
|
||||||
# Variables: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables + https://forgejo.org/docs/latest/user/actions/#env-1
|
# Variables: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables + https://forgejo.org/docs/latest/user/actions/#env-1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Run Gitleaks
|
|
||||||
uses: docker://zricethezav/gitleaks:v8.22.0
|
|
||||||
with:
|
|
||||||
args: detect --no-git --verbose --source ${{ github.workspace }}
|
|
||||||
- name: Run hadolint
|
|
||||||
uses: docker://pipelinecomponents/hadolint:0.27.0
|
|
||||||
with:
|
|
||||||
args: hadolint Dockerfile
|
|
||||||
# - name: Run ShellCheck
|
|
||||||
# uses: sudo-bot/action-shellcheck@latest
|
|
||||||
# with:
|
|
||||||
# cli-args: "shell.sh"
|
|
||||||
- name: Send notification
|
|
||||||
uses: dawidd6/action-send-mail@v4
|
|
||||||
if: failure()
|
|
||||||
with:
|
|
||||||
connection_url: smtp://docker10.mgrote.net:1025
|
|
||||||
secure: false
|
|
||||||
ignore_cert: true
|
|
||||||
to: michael.grote@posteo.de
|
|
||||||
from: Gitea Actions <gitea@mgrote.net>
|
|
||||||
subject: "CI ${{ job.status }} in ${{ github.repository }}"
|
|
||||||
body: |
|
|
||||||
Repo: ${{ github.repository }}
|
|
||||||
Job: ${{ github.action }}
|
|
||||||
Status: ${{ job.status }}
|
|
||||||
Trigger Event: ${{ GITHUB_EVENT_NAME }}
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: [gitleaks, hadolint] # shellcheck
|
needs: [gitleaks, hadolint] # shellcheck
|
||||||
|
@ -77,6 +46,8 @@ jobs:
|
||||||
secrets: |
|
secrets: |
|
||||||
"GITUSER=${{ secrets.GITUSER }}"
|
"GITUSER=${{ secrets.GITUSER }}"
|
||||||
"GITUSERPW=${{ secrets.GITUSERPW }}"
|
"GITUSERPW=${{ secrets.GITUSERPW }}"
|
||||||
|
env:
|
||||||
|
DOCKER_BUILDKIT: 1 # for secrets in dockerfile
|
||||||
- name: Send notification
|
- name: Send notification
|
||||||
uses: dawidd6/action-send-mail@v4
|
uses: dawidd6/action-send-mail@v4
|
||||||
if: failure()
|
if: failure()
|
||||||
|
|
Loading…
Add table
Reference in a new issue