WiiMart-org/.gitlab-ci.yml
2025-04-28 23:06:39 +00:00

17 lines
497 B
YAML

stages:
- deploy
deploy:
stage: deploy
tags:
- shell
before_script:
- mkdir -p ~/.ssh
- echo "$SSH_PRIVATE_KEY" | base64 -d > ~/.ssh/id_ed25519
- chmod 600 ~/.ssh/id_ed25519
- echo "Host deploy-target" >> ~/.ssh/config
- echo " HostName 192.168.1.14" >> ~/.ssh/config
- echo " User gitdeploy" >> ~/.ssh/config
- echo " StrictHostKeyChecking no" >> ~/.ssh/config
script:
- ssh deploy-target "true" # Trigger forced command (will auto-run git pull)