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:
|
commands:
|
||||||
- . ./version.sh
|
- . ./version.sh
|
||||||
"lint:style":
|
"lint:style":
|
||||||
group: lint
|
|
||||||
image: *java_image
|
image: *java_image
|
||||||
commands:
|
commands:
|
||||||
- gradle --no-daemon spotlessCheck
|
- gradle --no-daemon spotlessCheck
|
||||||
|
depends_on: ["prepare:version"]
|
||||||
"lint:dockerfile":
|
"lint:dockerfile":
|
||||||
group: lint
|
|
||||||
image: ghcr.io/hadolint/hadolint:latest-debian
|
image: ghcr.io/hadolint/hadolint:latest-debian
|
||||||
commands:
|
commands:
|
||||||
- hadolint --version
|
- hadolint --version
|
||||||
|
depends_on: ["prepare:version"]
|
||||||
"build:java":
|
"build:java":
|
||||||
group: build
|
depends_on:
|
||||||
|
- lint:style
|
||||||
|
- lint:dockerfile
|
||||||
image: *java_image
|
image: *java_image
|
||||||
commands:
|
commands:
|
||||||
- . ./version-lock.sh
|
- . ./version-lock.sh
|
||||||
- ./gradlew -Pversion=$CD_CURRENT_VERSION build
|
- ./gradlew -Pversion=$CD_CURRENT_VERSION build
|
||||||
"analyze:sbom":
|
"analyze:sbom":
|
||||||
|
depends_on: ["build:java"]
|
||||||
image: *java_image
|
image: *java_image
|
||||||
commands:
|
commands:
|
||||||
- ./gradlew cyclonedxBom
|
- ./gradlew cyclonedxBom
|
||||||
|
|
||||||
"deploy:backend":
|
"deploy:backend":
|
||||||
|
depends_on: ["analyze:sbom"]
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
- echo "deploy backend"
|
- echo "deploy backend"
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ steps:
|
||||||
- git log -1 --pretty=%B >> commitlint.txt
|
- git log -1 --pretty=%B >> commitlint.txt
|
||||||
|
|
||||||
"lint:commitlint":
|
"lint:commitlint":
|
||||||
group: lint
|
|
||||||
image: node:lts-slim
|
image: node:lts-slim
|
||||||
commands:
|
commands:
|
||||||
- npm install --save-dev conventional-changelog-conventionalcommits @commitlint/config-conventional commitlint@latest
|
- npm install --save-dev conventional-changelog-conventionalcommits @commitlint/config-conventional commitlint@latest
|
||||||
|
|
@ -23,14 +22,12 @@ steps:
|
||||||
- branch: [main, dev]
|
- branch: [main, dev]
|
||||||
event: push
|
event: push
|
||||||
"lint:precommit":
|
"lint:precommit":
|
||||||
group: lint
|
|
||||||
image: python:3.11.6-bullseye
|
image: python:3.11.6-bullseye
|
||||||
commands:
|
commands:
|
||||||
- pip install pre-commit
|
- pip install pre-commit
|
||||||
- pre-commit install
|
- pre-commit install
|
||||||
- pre-commit run --all-files
|
- pre-commit run --all-files
|
||||||
"lint:credentials":
|
"lint:credentials":
|
||||||
group: lint
|
|
||||||
image: ghcr.io/gitleaks/gitleaks:latest
|
image: ghcr.io/gitleaks/gitleaks:latest
|
||||||
commands:
|
commands:
|
||||||
- export HOME=/home/gitleaks
|
- export HOME=/home/gitleaks
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
trigger
|
||||||
Loading…
Reference in New Issue