Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
08097450de | |||
08a5536690 | |||
0d6187bd30 | |||
ddbc71d3a6 |
@ -16,17 +16,15 @@ steps:
|
|||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
image: quay.io/wollud1969/k8s-admin-helper:0.1.3
|
image: quay.io/wollud1969/k8s-admin-helper:0.1.3
|
||||||
secrets:
|
environment:
|
||||||
- source: kube_config
|
KUBE_CONFIG_CONTENT:
|
||||||
target: KUBE_CONFIG_CONTENT
|
from_secret: kube_config
|
||||||
- source: gpg_passphrase
|
GPG_PASSPHRASE:
|
||||||
target: GPG_PASSPHRASE
|
from_secret: gpg_passphrase
|
||||||
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
|
||||||
- export KUBECONFIG=/tmp/kubeconfig
|
- export KUBECONFIG=/tmp/kubeconfig
|
||||||
- id
|
|
||||||
- pwd
|
|
||||||
- ./deployment/deploy.sh
|
- ./deployment/deploy.sh
|
||||||
when:
|
when:
|
||||||
- event: tag
|
- event: tag
|
||||||
|
@ -17,7 +17,8 @@ pushd $DEPLOYMENT_DIR > /dev/null
|
|||||||
SECRETS_FILE=`mktemp`
|
SECRETS_FILE=`mktemp`
|
||||||
pwd
|
pwd
|
||||||
id
|
id
|
||||||
gpg --decrypt --passphrase $GPG_PASSPHRASE --yes --batch --output $SECRETS_FILE secrets.asc
|
echo $HOME
|
||||||
|
gpg --decrypt --passphrase $GPG_PASSPHRASE --yes --batch --homedir /tmp/.gnupg --output $SECRETS_FILE secrets.asc
|
||||||
. $SECRETS_FILE
|
. $SECRETS_FILE
|
||||||
rm $SECRETS_FILE
|
rm $SECRETS_FILE
|
||||||
|
|
||||||
@ -38,9 +39,9 @@ kubectl create secret generic jupyter \
|
|||||||
--dry-run=client \
|
--dry-run=client \
|
||||||
-o yaml \
|
-o yaml \
|
||||||
--save-config \
|
--save-config \
|
||||||
--from-literal=PGHOST="$PGHOST" | \
|
--from-literal=PGHOST="$PGHOST" \
|
||||||
--from-literal=PGUSER="$PGUSER" | \
|
--from-literal=PGUSER="$PGUSER" \
|
||||||
--from-literal=PGPASSWORD="$PGPASSWORD" | \
|
--from-literal=PGPASSWORD="$PGPASSWORD" \
|
||||||
--from-literal=PGSSLMODE="$PGSSLMODE" | \
|
--from-literal=PGSSLMODE="$PGSSLMODE" | \
|
||||||
kubectl apply -f - -n $NAMESPACE
|
kubectl apply -f - -n $NAMESPACE
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user