workflow-fix (#24)
fix: update with depends_on Co-authored-by: Richard Attermeyer <richard.attermeyer@gmail.com> Reviewed-on: #24pull/16/head
parent
1dac58ed36
commit
fdbbe54abe
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
trigger
|
||||
Loading…
Reference in New Issue