2024-08-30 23:18:57 +03:30
|
|
|
stages:
|
|
|
|
- build
|
2024-09-16 11:53:40 +03:30
|
|
|
- deploy
|
2024-08-30 23:18:57 +03:30
|
|
|
|
|
|
|
image: archlinux/archlinux:base-devel
|
|
|
|
|
|
|
|
archiso:
|
|
|
|
stage: build
|
|
|
|
script:
|
2024-09-05 17:44:38 +03:30
|
|
|
- ./build.sh
|
2024-09-16 11:53:40 +03:30
|
|
|
- echo "Renaming the output ISO file"
|
2024-09-16 12:29:10 +03:30
|
|
|
- mv out/*.iso out/ParchLinux-cosmic-latest.iso
|
2024-08-30 23:21:10 +03:30
|
|
|
rules:
|
2024-09-13 03:03:22 +03:30
|
|
|
- if: $CI_COMMIT_TAG
|
2024-08-30 23:18:57 +03:30
|
|
|
|
2024-09-16 11:53:40 +03:30
|
|
|
deploy:
|
|
|
|
stage: deploy
|
2024-09-13 03:01:21 +03:30
|
|
|
script:
|
2024-09-16 11:53:40 +03:30
|
|
|
- echo "Installing sshpass"
|
2024-09-16 13:00:53 +03:30
|
|
|
- pacman -Syu --noconfirm sshpass rsync
|
2024-09-16 11:53:40 +03:30
|
|
|
- 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"
|
2024-09-16 14:00:04 +03:30
|
|
|
- sshpass -p "$PASS" scp -o StrictHostKeyChecking=no out/*.iso parch@$SSH_ROOT:/srv/http/cosmic
|
2024-09-13 03:01:21 +03:30
|
|
|
rules:
|
2024-09-13 03:03:22 +03:30
|
|
|
- if: $CI_COMMIT_TAG
|
2024-09-13 03:01:21 +03:30
|
|
|
dependencies:
|
2024-09-16 11:53:40 +03:30
|
|
|
- archiso
|
2024-08-30 23:21:10 +03:30
|
|
|
|