3 Commits
1.2.2 ... main

Author SHA1 Message Date
c63eb169b1 changes
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2025-08-21 18:53:28 +02:00
b207b5a186 fix 3
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2025-07-30 18:54:52 +02:00
6abd8dcae9 fix 2
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
2025-07-30 17:58:46 +02:00
2 changed files with 17 additions and 2 deletions

View File

@@ -17,6 +17,9 @@ spec:
containers: containers:
- name: dtrack-defectdojo-automation-server - name: dtrack-defectdojo-automation-server
image: %IMAGE% image: %IMAGE%
envFrom:
- secretRef:
name: dtrack-defectdojo-automation-server
ports: ports:
- containerPort: 8000 - containerPort: 8000
protocol: TCP protocol: TCP

View File

@@ -1,11 +1,13 @@
#!/bin/bash #!/bin/bash
set -e
if [ "$IMAGE_TAG" == "" ]; then if [ "$IMAGE_TAG" == "" ]; then
echo "Make sure IMAGE_TAG is set" echo "Make sure IMAGE_TAG is set"
exit 1 exit 1
fi fi
IMAGE_NAME=gitea.hottis.de/wn/dtrack-defectdojo-automation-server IMAGE_NAME=gitea.hottis.de/wn/dtrack-defectdojo-automation
NAMESPACE=webservices NAMESPACE=webservices
DEPLOYMENT_DIR=$PWD/deployment DEPLOYMENT_DIR=$PWD/deployment
@@ -16,8 +18,18 @@ kubectl create namespace $NAMESPACE \
-o yaml | -o yaml |
kubectl -f - apply kubectl -f - apply
kubectl create secret generic dtrack-defectdojo-automation-server \
--dry-run=client \
-o yaml \
--save-config \
--from-literal=DTRACK_API_URL="" \
--from-literal=DTRACK_TOKEN="" \
--from-literal=DEFECTDOJO_URL="" \
--from-literal=DEFECTDOJO_TOKEN="" |
kubectl apply -n $NAMESPACE -f -
cat $DEPLOYMENT_DIR/deploy-yml.tmpl | cat $DEPLOYMENT_DIR/deploy-yml.tmpl |
sed -e 's,%IMAGE%,'$IMAGE_NAME':'$IMAGE_TAG','g | sed -e 's,%IMAGE%,'$IMAGE_NAME':server-'$IMAGE_TAG','g |
kubectl apply -f - -n $NAMESPACE kubectl apply -f - -n $NAMESPACE
popd >/dev/null popd >/dev/null