From 461f912f649346550f1a5756bee9c51256c46abb Mon Sep 17 00:00:00 2001 From: thom Date: Mon, 28 Apr 2025 23:01:46 +0000 Subject: [PATCH] Update file .gitlab-ci.yml --- .gitlab-ci.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e31e65b..b850369 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 \ No newline at end of file + - ssh deploy-target "true" # Trigger forced command (will auto-run git pull) \ No newline at end of file