Compare commits
3 Commits
c77394bf4d
...
0.0.20
Author | SHA1 | Date | |
---|---|---|---|
f6728eb898
|
|||
e18aeed273
|
|||
4eab542960
|
@ -2,8 +2,7 @@ steps:
|
|||||||
build:
|
build:
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko
|
||||||
settings:
|
settings:
|
||||||
repo:
|
repo: gitea.hottis.de/wn/udi
|
||||||
from_secret: image_name
|
|
||||||
registry:
|
registry:
|
||||||
from_secret: container_registry
|
from_secret: container_registry
|
||||||
tags: latest,${CI_COMMIT_SHA},${CI_COMMIT_TAG}
|
tags: latest,${CI_COMMIT_SHA},${CI_COMMIT_TAG}
|
||||||
@ -20,6 +19,10 @@ steps:
|
|||||||
secrets:
|
secrets:
|
||||||
- source: kube_config
|
- source: kube_config
|
||||||
target: KUBE_CONFIG_CONTENT
|
target: KUBE_CONFIG_CONTENT
|
||||||
|
- source: encryption_key
|
||||||
|
target: ENCRYPTION_KEY
|
||||||
|
- source: secrets_checksum
|
||||||
|
target: MD5_CHECKSUM
|
||||||
commands:
|
commands:
|
||||||
- export IMAGE_TAG=$CI_COMMIT_TAG
|
- export IMAGE_TAG=$CI_COMMIT_TAG
|
||||||
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
|
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
|
||||||
|
@ -5,10 +5,6 @@ if [ "$IMAGE_TAG" == "" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
./decrypt-secrets.sh || exit 1
|
|
||||||
|
|
||||||
. secrets
|
|
||||||
rm secrets
|
|
||||||
|
|
||||||
IMAGE_NAME=gitea.hottis.de/wn/udi
|
IMAGE_NAME=gitea.hottis.de/wn/udi
|
||||||
|
|
||||||
@ -18,6 +14,11 @@ CONFIG_FILE=config.json
|
|||||||
DEPLOYMENT_DIR=$PWD/deployment
|
DEPLOYMENT_DIR=$PWD/deployment
|
||||||
INSTANCES_DIR=$DEPLOYMENT_DIR/instances
|
INSTANCES_DIR=$DEPLOYMENT_DIR/instances
|
||||||
|
|
||||||
|
pushd $DEPLOYMENT_DIR > /dev/null
|
||||||
|
./decrypt-secrets.sh || exit 1
|
||||||
|
. secrets
|
||||||
|
rm secrets
|
||||||
|
popd > /dev/null
|
||||||
|
|
||||||
for NAMESPACE_DIR in `find $INSTANCES_DIR -type d -mindepth 1 -maxdepth 1`; do
|
for NAMESPACE_DIR in `find $INSTANCES_DIR -type d -mindepth 1 -maxdepth 1`; do
|
||||||
NAMESPACE=`basename $NAMESPACE_DIR`
|
NAMESPACE=`basename $NAMESPACE_DIR`
|
||||||
|
Reference in New Issue
Block a user