build: new workflow syntax
ci/woodpecker/push/lint_general Pipeline was successful
Details
ci/woodpecker/push/lint_general Pipeline was successful
Details
parent
1c81014a4d
commit
3b9f09b7f7
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue