Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
Signed-off-by: Gerd Oberlechner <[email protected]>
  • Loading branch information
geoberle committed Oct 25, 2024
1 parent 88dff3b commit e9838ec
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions svc-deploy
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
#!/bin/bash

# deploy a service to a cluster
# ./svc-deploy <deploy-env> <dir> <cluster>
# this script expects the <dir> to contain a Makefile.tmpl.mk template that can
# be processed with ./templatized according to config/config.yml

cd $(dirname "$(realpath "${BASH_SOURCE[0]}")")

export DEPLOY_ENV=$1
export DIR=$2
export CLUSTER=$3

if [[ "$CLUSTER" != "svc" && "$CLUSTER" != "mgmt" ]]; then
echo "Error: CLUSTER must be either 'svc' or 'mgmt'."
exit 1
fi

export KUBECONFIG=$(./dev-infrastructure/make $DEPLOY_ENV $CLUSTER.aks.kubeconfigfile)

./templatize $DEPLOY_ENV $DIR/Makefile.tmpl.mk $DIR/Makefile
Expand Down

0 comments on commit e9838ec

Please sign in to comment.