Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Minor CI/CD updates

Rich Turnere57277053132
diff --git a/.ci_cd/deploy.sh b/.ci_cd/deploy.sh
index 4285a0085..ea8f19efd 100644
--- a/.ci_cd/deploy.sh
+++ b/.ci_cd/deploy.sh
@@ -10,6 +10,9 @@ if [ -f "temp/env" ]; then
set -a
. ./temp/env
set +x
+
+ echo "Environment variables loaded:"
+ cat temp/env
fi
if [ -f "ssh.env" ]; then
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml
index 667b75b3c..c734153f5 100644
--- a/.github/workflows/ci_cd.yml
+++ b/.github/workflows/ci_cd.yml
@@ -659,9 +659,6 @@ jobs:
inputsAndSecrets = json.loads(os.getenv("INPUTS_AND_SECRETS"))
failure = False
-
- # Make deploy script executable
- os.system("chmod +x .ci_cd/deploy.sh")
for deployment in deployments:
dep = deployment.split(":")
@@ -688,10 +685,12 @@ jobs:
# Output env file if exists
if os.path.exists(".ci_cd/env/.env"):
+ os.system(f"echo 'Outputting .ci_cd/env/.env to temp/env'")
os.system("cat .ci_cd/env/.env >> temp/env")
# Output environment specific env file if exists
if env is not None and env != '' and os.path.exists(f".ci_cd/env/{env}.env"):
+ os.system(f"echo 'Outputting .ci_cd/env/{env}.env to temp/env'")
os.system(f"cat .ci_cd/env/{env}.env >> temp/env")
# Output inputs and secrets (spacial handling for SSH_KEY and SSH_PASSWORD)