mirror of
https://wiilab.wiimart.org/wiimart/WiiMart-github-io
synced 2025-09-03 20:11:03 +02:00
Update file .gitlab-ci.yml
This commit is contained in:
parent
db7bd2db25
commit
461f912f64
@ -1,16 +1,15 @@
|
||||
stages:
|
||||
- build
|
||||
|
||||
upload_to_server:
|
||||
stage: build
|
||||
#image:
|
||||
#name: wiimartorg-updater:latest
|
||||
|
||||
tags:
|
||||
- dkp
|
||||
- deploy
|
||||
|
||||
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:
|
||||
- ls
|
||||
- ls /opt
|
||||
- ls /opt/.ssh
|
||||
- ./opt/WiiMartOrgSender.sh
|
||||
- ssh deploy-target "true" # Trigger forced command (will auto-run git pull)
|
Loading…
x
Reference in New Issue
Block a user