fix: workflow-fix (#24)

update with depends_on

Co-authored-by: Richard Attermeyer <richard.attermeyer@gmail.com>
Reviewed-on: #24
pull/16/head
fjadmin 2024-01-27 18:40:02 +00:00 committed by Richard Attermeyer
parent 1dac58ed36
commit ba2d9344d8
3 changed files with 8 additions and 6 deletions

View File

@ -17,27 +17,31 @@ steps:
commands:
- . ./version.sh
"lint:style":
group: lint
image: *java_image
commands:
- gradle --no-daemon spotlessCheck
depends_on: ["prepare:version"]
"lint:dockerfile":
group: lint
image: ghcr.io/hadolint/hadolint:latest-debian
commands:
- hadolint --version
depends_on: ["prepare:version"]
"build:java":
group: build
depends_on:
- lint:style
- lint:dockerfile
image: *java_image
commands:
- . ./version-lock.sh
- ./gradlew -Pversion=$CD_CURRENT_VERSION build
"analyze:sbom":
depends_on: ["build:java"]
image: *java_image
commands:
- ./gradlew cyclonedxBom
"deploy:backend":
depends_on: ["analyze:sbom"]
image: alpine:latest
commands:
- echo "deploy backend"

View File

@ -13,7 +13,6 @@ steps:
- git log -1 --pretty=%B >> commitlint.txt
"lint:commitlint":
group: lint
image: node:lts-slim
commands:
- npm install --save-dev conventional-changelog-conventionalcommits @commitlint/config-conventional commitlint@latest
@ -23,14 +22,12 @@ steps:
- branch: [main, dev]
event: push
"lint:precommit":
group: lint
image: python:3.11.6-bullseye
commands:
- pip install pre-commit
- pre-commit install
- pre-commit run --all-files
"lint:credentials":
group: lint
image: ghcr.io/gitleaks/gitleaks:latest
commands:
- export HOME=/home/gitleaks

View File

@ -0,0 +1 @@
trigger