Skip to content

armgit / core

Public Imported from GitHub
0

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

Fix custom project deployment (#1559)

Wouter Borned5c617d0bc8
diff --git a/.ci_cd/deploy.sh b/.ci_cd/deploy.sh
index 3a96ba1c7..f0bf82ea5 100644
--- a/.ci_cd/deploy.sh
+++ b/.ci_cd/deploy.sh
@@ -51,7 +51,7 @@ HOST="$OR_HOSTNAME"
# Copy CI/CD files into temp dir
echo "Copying CI/CD files into temp dir"
-if [ "$IS_CUSTOM_PROJECT" == 'true' ]; then
+if [ "$IS_MAIN_REPO" == 'false' ]; then
cp -r openremote/.ci_cd/host_init temp/
cp -r openremote/.ci_cd/aws temp/
fi
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml
index 5aa628f0e..82ded6b5b 100644
--- a/.github/workflows/ci_cd.yml
+++ b/.github/workflows/ci_cd.yml
@@ -935,6 +935,7 @@ jobs:
os.system("echo 'One or more deployments failed'")
sys.exit(1)
env:
+ IS_CUSTOM_PROJECT: ${{ steps.is_main_repo.outputs.value == 'false' }}
IS_MAIN_REPO: ${{ steps.is_main_repo.outputs.value }}
DEPLOYMENTS: ${{ steps.deployments.outputs.value }}
MANAGER_DOCKER_BUILD_PATH: ${{ steps.manager-docker-command.outputs.buildPath }}