mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-06 19:12:30 +01:00
Fix ssh connection using ip to work around the host auth
Fix folder creation logic Fix osx names
This commit is contained in:
parent
e9f4948b72
commit
2a39f70964
@ -54,13 +54,13 @@ release_job:
|
||||
# 2. Connect to kelteseth.com and handle the folder
|
||||
- echo "Managing remote folder"
|
||||
- apt-get update && apt-get install -y sshpass
|
||||
- sshpass -p $GETSP_PASSWORD ssh $GETSP_USERNAME@kelteseth.com "if [ -d /getsp.de/$CI_COMMIT_TAG ]; then rm -r /getsp.de/$CI_COMMIT_TAG; else mkdir /getsp.de/$CI_COMMIT_TAG; fi"
|
||||
- sshpass -p $GETSP_PASSWORD ssh $GETSP_USERNAME@91.204.46.10 "rm -rf /getsp.de/$CI_COMMIT_TAG; mkdir /getsp.de/$CI_COMMIT_TAG;"
|
||||
# 3. Upload files to the remote folder
|
||||
- echo "Uploading files"
|
||||
- sshpass -p $GETSP_PASSWORD scp build-x64-linux-release/ScreenPlay-$CI_COMMIT_TAG-x64-linux-release.zip $GETSP_USERNAME@kelteseth.com:/getsp.de/$CI_COMMIT_TAG/
|
||||
- sshpass -p $GETSP_PASSWORD scp build-x64-windows-release/ScreenPlay-$CI_COMMIT_TAG-x64-windows-release.zip $GETSP_USERNAME@kelteseth.com:/getsp.de/$CI_COMMIT_TAG/
|
||||
- sshpass -p $GETSP_PASSWORD scp build-64-osx-universal-release/ScreenPlay-$CI_COMMIT_TAG-64-osx-universal-release.zip $GETSP_USERNAME@kelteseth.com:/getsp.de/$CI_COMMIT_TAG/
|
||||
- sshpass -p $GETSP_PASSWORD scp SHA512-SUMS.txt $GETSP_USERNAME@kelteseth.com:/getsp.de/$CI_COMMIT_TAG/
|
||||
- sshpass -p $GETSP_PASSWORD scp build-x64-linux-release/ScreenPlay-$CI_COMMIT_TAG-x64-linux-release.zip $GETSP_USERNAME@91.204.46.10:/getsp.de/$CI_COMMIT_TAG/
|
||||
- sshpass -p $GETSP_PASSWORD scp build-x64-windows-release/ScreenPlay-$CI_COMMIT_TAG-x64-windows-release.zip $GETSP_USERNAME@91.204.46.10:/getsp.de/$CI_COMMIT_TAG/
|
||||
- sshpass -p $GETSP_PASSWORD scp build-64-osx-universal-release/ScreenPlay-$CI_COMMIT_TAG-64-osx-universal-release.zip $GETSP_USERNAME@91.204.46.10:/getsp.de/$CI_COMMIT_TAG/
|
||||
- sshpass -p $GETSP_PASSWORD scp SHA512-SUMS.txt $GETSP_USERNAME@91.204.46.10:/getsp.de/$CI_COMMIT_TAG/
|
||||
release:
|
||||
tag_name: $CI_COMMIT_TAG
|
||||
name: "ScreenPlay $CI_COMMIT_TAG Released!"
|
||||
@ -72,4 +72,6 @@ release_job:
|
||||
- name: 🪟 Windows x64 build
|
||||
url: "https://getsp.de/$CI_COMMIT_TAG/ScreenPlay-$CI_COMMIT_TAG-x64-windows-release.zip"
|
||||
- name: 🍏 OSX universal build
|
||||
url: "https://getsp.de/$CI_COMMIT_TAG/ScreenPlay-$CI_COMMIT_TAG-x64-osx-universal-release.zip"
|
||||
url: "https://getsp.de/$CI_COMMIT_TAG/ScreenPlay-$CI_COMMIT_TAG-64-osx-universal-release.zip"
|
||||
- name: ℹ️ SHA512-SUMS.txt
|
||||
url: "https://getsp.de/$CI_COMMIT_TAG/SHA512-SUMS.txt"
|
||||
|
Loading…
Reference in New Issue
Block a user