Added Hash Generation
This commit is contained in:
parent
b0118a6d36
commit
babc378836
1 changed files with 4 additions and 11 deletions
|
@ -15,10 +15,8 @@ build_iso:
|
||||||
- mv out/*.iso out/ParchLinux-$Desktop-latest.iso
|
- mv out/*.iso out/ParchLinux-$Desktop-latest.iso
|
||||||
- echo "Generating MD5 checksum"
|
- echo "Generating MD5 checksum"
|
||||||
- md5sum out/ParchLinux-$Desktop-latest.iso > out/md5sum.txt
|
- md5sum out/ParchLinux-$Desktop-latest.iso > out/md5sum.txt
|
||||||
- echo "Build Date: $(date +'%Y-%m-%d')" >> out/md5sum.txt
|
- echo "Build completed. Files generated:"
|
||||||
- |
|
- ls -lh out/
|
||||||
echo "Build completed. Files generated:"
|
|
||||||
ls -lh out/
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- out/ParchLinux-$Desktop-latest.iso
|
- out/ParchLinux-$Desktop-latest.iso
|
||||||
|
@ -33,13 +31,8 @@ deploy_iso:
|
||||||
script:
|
script:
|
||||||
- echo "Installing sshpass and rsync"
|
- echo "Installing sshpass and rsync"
|
||||||
- pacman -Syu --noconfirm sshpass rsync
|
- pacman -Syu --noconfirm sshpass rsync
|
||||||
- |
|
- echo "Determining the remote directory based on the tag"
|
||||||
echo "Determining the remote directory based on the tag"
|
- if [[ "$CI_COMMIT_TAG" == *"beta"* ]]; then export REMOTE_DIR="/srv/http/beta/$Desktop/"; else export REMOTE_DIR="/srv/http/$Desktop/"; fi
|
||||||
if [[ "$CI_COMMIT_TAG" == *"beta"* ]]; then
|
|
||||||
export REMOTE_DIR="/srv/http/beta/$Desktop/"
|
|
||||||
else
|
|
||||||
export REMOTE_DIR="/srv/http/$Desktop/"
|
|
||||||
fi
|
|
||||||
- echo "Removing old ISO files from remote directory"
|
- echo "Removing old ISO files from remote directory"
|
||||||
- sshpass -p "$PASS" ssh -o StrictHostKeyChecking=no parch@$SSH_ROOT rm -rf "$REMOTE_DIR/"
|
- sshpass -p "$PASS" ssh -o StrictHostKeyChecking=no parch@$SSH_ROOT rm -rf "$REMOTE_DIR/"
|
||||||
- echo "Creating new directory on remote host"
|
- echo "Creating new directory on remote host"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue