Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
302f4df307
|
|||
b8f4a3c46f
|
|||
1cee3b5dae
|
|||
0d28c61c0f
|
|||
7fefc75d64
|
|||
e0398bd8fb
|
@@ -1,6 +1,6 @@
|
||||
stages:
|
||||
- generate-api-clients
|
||||
- dockerize
|
||||
- build
|
||||
|
||||
variables:
|
||||
REGISTRY: devnexus.krohne.com:18079/repository/docker-krohne
|
||||
@@ -69,7 +69,7 @@ generate-defectdojo-api:
|
||||
--package-name defectdojo_api
|
||||
|
||||
dockerize:
|
||||
stage: dockerize
|
||||
stage: build
|
||||
image: devnexus.krohne.com:18079/repository/docker-krohne/krohnedockerbash:0.5
|
||||
tags:
|
||||
- linux
|
||||
@@ -89,38 +89,30 @@ dockerize:
|
||||
- docker push $IMAGE_NAME:$CI_COMMIT_SHA
|
||||
- docker push $IMAGE_NAME:$CI_COMMIT_TAG
|
||||
|
||||
build-windows-binary:
|
||||
stage: build
|
||||
tags:
|
||||
- windows
|
||||
- pwsh
|
||||
- python3.13
|
||||
rules:
|
||||
- if: '$CI_COMMIT_TAG'
|
||||
artifacts:
|
||||
paths:
|
||||
- sbom-dt-dd.exe
|
||||
script:
|
||||
- dir
|
||||
- |
|
||||
cd src
|
||||
mv dependencytrack-client .\src
|
||||
mv defectdojo-client .\src
|
||||
& 'C:\Program Files\Python313\python.exe' -m venv venv
|
||||
.\venv\Scripts\pip.exe install --upgrade pip
|
||||
.\venv\Scripts\pip.exe install -r requirements.txt
|
||||
.\venv\Scripts\pip.exe install -r dependencytrack-client\requirements.txt
|
||||
.\venv\Scripts\pip.exe install -r defectdojo-client\requirements.txt
|
||||
.\venv\Scripts\pip.exe install pyinstaller
|
||||
.\venv\Scripts\pyinstaller.exe --onefile sbom-dt-dd.py
|
||||
mv dist\sbom-dt-dd.exe ..
|
||||
|
||||
|
||||
#
|
||||
# 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]
|
||||
#
|
||||
|
||||
|
Reference in New Issue
Block a user