Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
b207b5a186
|
|||
6abd8dcae9
|
|||
037b3e64eb
|
@@ -15,7 +15,7 @@ spec:
|
|||||||
app: dtrack-defectdojo-automation-server
|
app: dtrack-defectdojo-automation-server
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name:dtrack-defectdojo-automation-server
|
- name: dtrack-defectdojo-automation-server
|
||||||
image: %IMAGE%
|
image: %IMAGE%
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
|
@@ -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
|
||||||
|
|
||||||
@@ -17,7 +19,7 @@ kubectl create namespace $NAMESPACE \
|
|||||||
kubectl -f - apply
|
kubectl -f - apply
|
||||||
|
|
||||||
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
|
||||||
|
Reference in New Issue
Block a user