mirror of
https://wiilab.wiimart.org/wiimart/WiiMart-github-io
synced 2025-09-05 13:01:15 +02:00
Update file .gitlab-ci.yml
This commit is contained in:
parent
db7bd2db25
commit
461f912f64
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user