This commit is contained in:
2025-06-20 13:29:32 +02:00
commit 7c1ac1ddfa
2 changed files with 68 additions and 0 deletions

7
.gitignore vendored Normal file
View File

@ -0,0 +1,7 @@
ENV
defs/
*/.venv/
__pycache__/
.*.swp
tmp/

61
.woodpecker.yml Normal file
View File

@ -0,0 +1,61 @@
steps:
generate-dtrack-api:
image: openapitools/openapi-generator-cli:v7.12.0
commands:
- curl https://dtrack-api.hottis.de/api/openapi.json > dependencytrack-openapi.json
- |
docker-entrypoint.sh \
generate \
-i dependencytrack-openap.json \
-g go \
-o dependencytrack-client-go \
--package-name dependencytrack_api \
when:
- event: [ push, tag ]
generate-defectdojo:
image: openapitools/openapi-generator-cli:v7.12.0
commands:
- curl https://defectdojo.hottis.de/api/v2/oa3/schema/?format=json > defectdojo-openapi.json
- |
docker-entrypoint.sh \
generate \
-i defectdojo-openapi.json \
-g go \
-o defectdojo-client-go \
--package-name defectdojo_api \
when:
- event: [ push, tag ]
build:
image: plugins/kaniko
settings:
repo: ${FORGE_NAME}/${CI_REPO}
registry:
from_secret: container_registry
tags: latest,${CI_COMMIT_SHA},${CI_COMMIT_TAG}
username:
from_secret: container_registry_username
password:
from_secret: container_registry_password
dockerfile: Dockerfile
when:
- event: [ push, tag ]
build-for-quay:
image: plugins/kaniko
settings:
repo: quay.io/wollud1969/${CI_REPO_NAME}
registry: quay.io
tags:
- latest
- ${CI_COMMIT_TAG}
username:
from_secret: quay_username
password:
from_secret: quay_password
dockerfile: Dockerfile
when:
- event: [tag]