Merge branch 'main' into renovate/sonarqube-10.x
commit
36b502fdd1
|
|
@ -1,3 +1,4 @@
|
||||||
# Enable auto-env through the sdkman_auto_env config
|
# Enable auto-env through the sdkman_auto_env config
|
||||||
# Add key=value pairs of SDKs to use below
|
# Add key=value pairs of SDKs to use below
|
||||||
java=17.0.8-tem
|
java=21.0.2-tem
|
||||||
|
gradle=8.5
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ variables:
|
||||||
- &java_image "gradle:8.5.0-jdk17"
|
- &java_image "gradle:8.5.0-jdk17"
|
||||||
when:
|
when:
|
||||||
path: "app/**"
|
path: "app/**"
|
||||||
|
event: [push, tag]
|
||||||
clone:
|
clone:
|
||||||
git:
|
git:
|
||||||
image: woodpeckerci/plugin-git
|
image: woodpeckerci/plugin-git
|
||||||
|
|
@ -12,31 +13,35 @@ clone:
|
||||||
tags: true
|
tags: true
|
||||||
steps:
|
steps:
|
||||||
"prepare:version":
|
"prepare:version":
|
||||||
image: bitnami/git:2.42.1
|
image: bitnami/git:2.43.0
|
||||||
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"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
when:
|
when:
|
||||||
path: "documentation/**"
|
path: "documentation/**"
|
||||||
|
event: [push, tag]
|
||||||
variables:
|
variables:
|
||||||
- &frontend_image "cl00e9ment/node.js-builder:git"
|
- &frontend_image "cl00e9ment/node.js-builder:git"
|
||||||
clone:
|
clone:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
when:
|
when:
|
||||||
path: "frontend/**"
|
path: "frontend/**"
|
||||||
|
event: [push, tag]
|
||||||
variables:
|
variables:
|
||||||
- &frontend_image "cl00e9ment/node.js-builder:git"
|
- &frontend_image "cl00e9ment/node.js-builder:git"
|
||||||
clone:
|
clone:
|
||||||
|
|
@ -12,7 +13,7 @@ clone:
|
||||||
tags: true
|
tags: true
|
||||||
steps:
|
steps:
|
||||||
"prepare:version":
|
"prepare:version":
|
||||||
image: bitnami/git:2.42.1
|
image: bitnami/git:2.43.0
|
||||||
group: prepare
|
group: prepare
|
||||||
commands:
|
commands:
|
||||||
- . ./version.sh
|
- . ./version.sh
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
---
|
---
|
||||||
|
when:
|
||||||
|
event: [push, tag]
|
||||||
clone:
|
clone:
|
||||||
git:
|
git:
|
||||||
image: woodpeckerci/plugin-git
|
image: woodpeckerci/plugin-git
|
||||||
|
|
@ -6,12 +8,11 @@ clone:
|
||||||
skip_verify: true
|
skip_verify: true
|
||||||
steps:
|
steps:
|
||||||
"prepare:commitlint":
|
"prepare:commitlint":
|
||||||
image: bitnami/git:2.42.1
|
image: bitnami/git:2.43.0
|
||||||
commands:
|
commands:
|
||||||
- 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
|
||||||
|
|
@ -21,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
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ clone:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
"version:update":
|
"version:update":
|
||||||
image: bitnami/git:2.42.1
|
image: bitnami/git:2.43.0
|
||||||
commands:
|
commands:
|
||||||
- echo "$CI_COMMIT_MESSAGE" | ./version-auto-update.sh
|
- echo "$CI_COMMIT_MESSAGE" | ./version-auto-update.sh
|
||||||
- git config --global http.sslVerify false
|
- git config --global http.sslVerify false
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
trigger
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("com.opitzconsulting.demo.ci.java-application-conventions")
|
id("com.opitzconsulting.demo.ci.java-application-conventions")
|
||||||
id("org.springframework.boot") version "3.1.5"
|
id("org.springframework.boot") version "3.2.2"
|
||||||
id("io.spring.dependency-management") version "1.1.4"
|
id("io.spring.dependency-management") version "1.1.4"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,49 +0,0 @@
|
||||||
# base domain
|
|
||||||
BASE_DOMAIN=rattermeyer.de
|
|
||||||
|
|
||||||
# Traefik server host
|
|
||||||
TRAEFIK_HOST=traefik.demo.${BASE_DOMAIN}
|
|
||||||
TRAEFIK_LETSENCRYPT_CASERVER=https://acme-staging-v02.api.letsencrypt.org/directory
|
|
||||||
TRAEFIK_LETSENCRYPT_EMAIL=richard.attermeyer@gmail.com
|
|
||||||
TRAEIFK_LOCALIP_WHITELIST=127.0.0.1/32, 192.168.0.0/16, 172.16.0.0/12, ::1, 2a00:6020:b41a:b600::/56
|
|
||||||
|
|
||||||
MAIL_HOST=mail.demo.${BASE_DOMAIN}
|
|
||||||
|
|
||||||
# forgejo server address
|
|
||||||
FORGEJO_HOST=git.demo.${BASE_DOMAIN}
|
|
||||||
FORGEJO_URL=https://${FORGEJO_HOST}
|
|
||||||
|
|
||||||
# Woodpecker server host
|
|
||||||
WOODPECKER_HOST=ci.demo.${BASE_DOMAIN}
|
|
||||||
# Woodpecker server address
|
|
||||||
WOODPECKER_URL=https://${WOODPECKER_HOST}
|
|
||||||
|
|
||||||
# Shared secret used by server and agents to authenticate communication (can be generated by 'openssl rand -hex 32')
|
|
||||||
WOODPECKER_AGENT_SECRET=c45adc154097b7a13a446da394570b888ea2e7da3aa462a318150266c9355f5d
|
|
||||||
# Comma-separated list of admin accounts
|
|
||||||
#WOODPECKER_ADMIN=CHANGE_ME
|
|
||||||
WOODPECKER_ADMIN=fjadmin
|
|
||||||
|
|
||||||
WOODPECKER_FORGEJO_URL=${FORGEJO_URL}
|
|
||||||
# giteleaks:allow
|
|
||||||
WOODPECKER_FORGEJO_CLIENT=e0049f6b-dd9d-4854-8b48-10dc724f61c3
|
|
||||||
# giteleaks:allow
|
|
||||||
WOODPECKER_FORGEJO_SECRET=gto_7nu6b2cljkimzc5bhbj2u7t2d5hpmig6wqbgmscaoq23x3uvgoda
|
|
||||||
|
|
||||||
# Renovate
|
|
||||||
RENOVATE_TOKEN=CHANGE_ME
|
|
||||||
|
|
||||||
# Registry
|
|
||||||
REGISTRY_HOST=container.demo.${BASE_DOMAIN}
|
|
||||||
REGISTRY_UI_HOST=container-ui.demo.${BASE_DOMAIN}
|
|
||||||
|
|
||||||
REPOSILITE_HOST=mvn.demo.${BASE_DOMAIN}
|
|
||||||
REPOSILITE_UI_HOST=mvn-ui.demo.${BASE_DOMAIN}
|
|
||||||
REPOSILITE_JAVA_COMPOSE_OPTS=
|
|
||||||
REPOSILITE_MEMORY=256M
|
|
||||||
REPOSILITE_COMPOSE_OPTS="--token admin:changeme"
|
|
||||||
REPOSILITE_PORT=8080
|
|
||||||
|
|
||||||
VERDACCIO_HOST=npm.demo.${BASE_DOMAIN}
|
|
||||||
|
|
||||||
SONARQUBE_HOST=sonarqube.demo.${BASE_DOMAIN}
|
|
||||||
Loading…
Reference in New Issue