mirror of
https://wiilab.wiimart.org/wiimart/WiiMart-github-io
synced 2025-09-03 20:11:03 +02:00
17 lines
497 B
YAML
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) |