F... Gitlab
This commit is contained in:
parent
36fac961c1
commit
341feaab43
1 changed files with 11 additions and 6 deletions
|
@ -7,13 +7,20 @@ image: archlinux/archlinux:base-devel
|
|||
variables:
|
||||
Desktop: "cosmic"
|
||||
|
||||
archiso:
|
||||
build_iso:
|
||||
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
|
||||
artifacts:
|
||||
paths:
|
||||
- out/ParchLinux-cosmic-latest.iso
|
||||
|
||||
deploy_iso:
|
||||
stage: deploy
|
||||
dependencies:
|
||||
- build_iso
|
||||
script:
|
||||
- echo "Installing sshpass and rsync"
|
||||
- pacman -Syu --noconfirm sshpass rsync
|
||||
|
@ -22,8 +29,6 @@ archiso:
|
|||
- echo "Creating new directory on remote host"
|
||||
- sshpass -p "$PASS" ssh -o StrictHostKeyChecking=no parch@$SSH_ROOT mkdir -p /srv/http/cosmic/
|
||||
- echo "Uploading new ISO via rsync"
|
||||
- sshpass -p "$PASS" rsync -r "$(ls out/*.iso)" parch@SSH_ROOT:/srv/http/cosmic/
|
||||
- sshpass -p "$PASS" rsync -r out/ParchLinux-cosmic-latest.iso parch@$SSH_ROOT:/srv/http/cosmic/
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
|
||||
|
||||
- if: $CI_COMMIT_TAG
|
||||
|
|
Loading…
Add table
Reference in a new issue