Update file .gitlab-ci.yml

This commit is contained in:
thom 2025-04-28 23:01:46 +00:00
parent db7bd2db25
commit 461f912f64

View File

@ -1,16 +1,15 @@
stages: stages:
- build - deploy
upload_to_server:
stage: build
#image:
#name: wiimartorg-updater:latest
tags:
- dkp
deploy:
stage: deploy
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 http" >> ~/.ssh/config
- echo " StrictHostKeyChecking no" >> ~/.ssh/config
script: script:
- ls - ssh deploy-target "true" # Trigger forced command (will auto-run git pull)
- ls /opt
- ls /opt/.ssh
- ./opt/WiiMartOrgSender.sh