Skip to content
Snippets Groups Projects

Update .gitlab-ci.yml file

Merged Held Jonas requested to merge jh257/ha-wtf-fork:main into main
1 file
+ 8
1
Compare changes
  • Side-by-side
  • Inline
+ 8
1
@@ -13,5 +13,12 @@ test:
deploy:
only:
- main@jh257/hae.wtf
before_script:
- 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
script:
- echo "test"
- ssh root@$HOST_ADDRESS
- ls -l
Loading