29 lines
771 B
YAML
29 lines
771 B
YAML
stages:
|
|
- build
|
|
- deploy
|
|
|
|
image: archlinux/archlinux:base-devel
|
|
|
|
archiso:
|
|
stage: build
|
|
script:
|
|
- ./build.sh
|
|
- echo "Renaming the output ISO file"
|
|
- mv out/*.iso out/ParchLinux-cosmic-latest.iso
|
|
rules:
|
|
- if: $CI_COMMIT_TAG
|
|
|
|
deploy:
|
|
stage: deploy
|
|
script:
|
|
- echo "Installing sshpass"
|
|
- pacman -Syu --noconfirm sshpass rsync
|
|
- 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-cosmic-latest.iso parch@$SSH_ROOT:/srv/http/cosmic/
|
|
rules:
|
|
- if: $CI_COMMIT_TAG
|
|
dependencies:
|
|
- archiso
|
|
|