updated build file with ssh and rsync
This commit is contained in:
parent
673fa4c828
commit
cd81e1ada8
1 changed files with 2 additions and 5 deletions
|
@ -4,15 +4,12 @@ stages:
|
|||
|
||||
image: archlinux/archlinux:base-devel
|
||||
|
||||
variables:
|
||||
Desktop: "Cosmic" # Change this value to your desired desktop environment
|
||||
|
||||
archiso:
|
||||
stage: build
|
||||
script:
|
||||
- ./build.sh
|
||||
- echo "Renaming the output ISO file"
|
||||
- mv out/*.iso out/ParchLinux-$Desktop-latest.iso
|
||||
- mv out/*.iso out/ParchLinux-cosmic-latest.iso
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
|
||||
|
@ -24,7 +21,7 @@ deploy:
|
|||
- echo "Deleting old ISO files from remote directory"
|
||||
- sshpass -p "$PASS" ssh -o StrictHostKeyChecking=no parch@$SSH_ROOT "rm -f /srv/http/cosmic/*.iso"
|
||||
- echo "Deploying new ISO via rsync"
|
||||
- sshpass -p "$PASS" rsync -avz -e "ssh -o StrictHostKeyChecking=no" out/ParchLinux-$Desktop-latest.iso parch@$SSH_ROOT:/srv/http/cosmic/
|
||||
- sshpass -p "$PASS" rsync -avz -e "ssh -o StrictHostKeyChecking=no" out/ParchLinux-cosmic-latest.iso parch@$SSH_ROOT:/srv/http/cosmic/
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
dependencies:
|
||||
|
|
Loading…
Add table
Reference in a new issue