From ed231900ff27ed75a4dbe1437e5c954832689ee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Hedenstr=C3=B6m?= <erik@hedenstroem.com> Date: Thu, 28 Sep 2023 15:48:12 +0000 Subject: [PATCH] ci: Refactor build process for better stability - Add export path for `/opt/host/bin` and `/opt/host/local/bin` in `.gitlab-ci.yml` - Change `rsync` command to `cp` command to copy files in `.gitlab-ci.yml` - Add command to reload `python_script` using `hasscli` in `.gitlab-ci.yml` --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0e34718..2dc47bb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,7 @@ deploy: script: - - rsync -avu --delete . /opt/host/homeassistant/python_scripts + - export PATH=$PATH:/opt/host/bin:/opt/host/local/bin + - cp -Rfv * /opt/host/homeassistant/python_scripts + - hasscli service python_script reload tags: - shell -- GitLab