Skip to content

Commit

Permalink
script lint
Browse files Browse the repository at this point in the history
Signed-off-by: Gerd Oberlechner <[email protected]>
  • Loading branch information
geoberle committed Oct 29, 2024
1 parent 5aa1330 commit 53e73cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Validate dev-infrastructure
name: Bicep Lint

on:
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion dev-infrastructure/create-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

DEPLOY_ENV=$1
cd $(dirname "$(realpath "${BASH_SOURCE[0]}")")
cd $(dirname "$(realpath "${BASH_SOURCE[0]}")") || exit
../templatize.sh "$DEPLOY_ENV" config.tmpl.mk config.mk
for tmpl_file in configurations/*.tmpl.*; do
output_file="${tmpl_file/.tmpl/}"
Expand Down
6 changes: 3 additions & 3 deletions svc-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# this script expects the <dir> to contain a Makefile that takes care
# of processing any config.mk template on its own

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

export DEPLOY_ENV=$1
export DIR=$2
Expand All @@ -16,7 +16,7 @@ if [[ "$CLUSTER" != "svc" && "$CLUSTER" != "mgmt" ]]; then
exit 1
fi

export KUBECONFIG=$(cd dev-infrastructure ; make --no-print-directory $CLUSTER.aks.kubeconfigfile)
export KUBECONFIG=$(cd dev-infrastructure || exit ; make --no-print-directory $CLUSTER.aks.kubeconfigfile)

cd $DIR
cd $DIR || exit
make deploy

0 comments on commit 53e73cf

Please sign in to comment.