Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit 7d7083e

Browse files
committed
feat!: new deploy and upgrade scripts
1 parent cb40c2e commit 7d7083e

File tree

3 files changed

+3
-32
lines changed

3 files changed

+3
-32
lines changed

bin/deploy.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
#!/usr/bin/env bash
22

3-
source ./bin/loadenv.sh
4-
5-
if [ -z "$1" ]; then
6-
echo "Error: No depoyment specified"
7-
exit 1
8-
fi
93

104
echo "The deployment script is only meant to be ran once. If you need to upgrade the deployment, use bin/upgrade.sh instead."
115
echo "Are you sure you want to continue? (y/n)"
126
read -r response
13-
if [[ ! $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
7+
if [[ ! ${response,,} =~ ^y(es)?$ ]]; then
148
exit 0
159
fi
1610

17-
helm install "$1" ./ -f values.yaml -f <(envsubst < secrets.yaml)
11+
helm install "$1" ./ -f values.yaml -f secrets.yaml

bin/loadenv.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

bin/upgrade.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
11
#!/usr/bin/env bash
22

3-
source ./bin/loadenv.sh
4-
5-
if [ -z "$1" ]; then
6-
echo "Error: No depoyment specified"
7-
exit 1
8-
fi
9-
10-
helm upgrade -f values.yaml -f <(envsubst < secrets.yaml) "$1" .
3+
helm upgrade -f values.yaml -f secrets.yaml "$1" .

0 commit comments

Comments
 (0)