Compare commits
23 commits
2025.02.12
...
main
Author | SHA1 | Date | |
---|---|---|---|
241d00e2d2 | |||
b5aac1d777 | |||
a7ba10f01f | |||
74e4abfbea | |||
107e43139c | |||
fd5fba6be5 | |||
8cf386b53e | |||
a480a113f9 | |||
e20e0c3a89 | |||
eaf37afc97 | |||
f5fcba5b8e | |||
|
084bc42c9e | ||
|
7e297d77dd | ||
|
3b123c8d55 | ||
|
f569ac8a04 | ||
|
1816897f25 | ||
|
7b1f0814d2 | ||
50249bf5a5 | |||
898f8778e9 | |||
5f7ff3484d | |||
f670739aaf | |||
86b4815ee6 | |||
1fdbb7809f |
3 changed files with 17 additions and 35 deletions
|
@ -5,48 +5,31 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_iso:
|
build_iso:
|
||||||
runs-on: docker
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: archlinux/archlinux:base-devel
|
image: archlinux/archlinux:base-devel
|
||||||
|
privileged: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
Desktop: "template"
|
Desktop: "template"
|
||||||
steps:
|
steps:
|
||||||
# - name: Checkout code
|
- name: Install Node.js
|
||||||
# uses: actions/checkout@v4
|
run: pacman -Sy --noconfirm nodejs npm git sudo
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Update system
|
||||||
|
run: pacman -Syyuu --noconfirm
|
||||||
|
- name: Check user
|
||||||
|
run: whoami
|
||||||
- name: Build ISO
|
- name: Build ISO
|
||||||
run: |
|
run: |
|
||||||
./build.sh
|
sudo ./build.sh
|
||||||
echo "Renaming the output ISO file"
|
echo "Renaming the output ISO file"
|
||||||
mv out/*.iso out/ParchLinux-${{ env.Desktop }}-latest.iso
|
mv out/*.iso out/ParchLinux-${{ env.Desktop }}-latest.iso
|
||||||
echo "Generating MD5 checksum"
|
echo "Generating MD5 checksum"
|
||||||
md5sum out/ParchLinux-${{ env.Desktop }}-latest.iso > out/md5sum.txt
|
md5sum out/ParchLinux-${{ env.Desktop }}-latest.iso > out/md5sum.txt
|
||||||
echo "Build completed. Files generated:"
|
echo "Build completed. Files generated:"
|
||||||
ls -lh out/
|
ls -lh out/
|
||||||
|
|
||||||
- name: Upload artifacts
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: iso-artifacts
|
|
||||||
path: |
|
|
||||||
out/ParchLinux-${{ env.Desktop }}-latest.iso
|
|
||||||
out/md5sum.txt
|
|
||||||
|
|
||||||
deploy_iso:
|
|
||||||
runs-on: docker
|
|
||||||
needs: [build_iso]
|
|
||||||
container:
|
|
||||||
image: archlinux/archlinux:base-devel
|
|
||||||
env:
|
|
||||||
Desktop: "template"
|
|
||||||
SSH_HOST: ${{ secrets.SSHHOST }}
|
|
||||||
steps:
|
|
||||||
- name: Download artifacts
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: iso-artifacts
|
|
||||||
path: out/
|
|
||||||
|
|
||||||
- name: Setup dependencies
|
- name: Setup dependencies
|
||||||
run: pacman -Syu --noconfirm sshpass rsync
|
run: pacman -Syu --noconfirm sshpass rsync
|
||||||
|
|
||||||
|
@ -60,7 +43,8 @@ jobs:
|
||||||
|
|
||||||
- name: Deploy files
|
- name: Deploy files
|
||||||
env:
|
env:
|
||||||
SSHPASS: ${{ secrets.SSHPASS }}
|
PASS: ${{ secrets.PASS }}
|
||||||
|
HOST: ${{ secrets.HOST }}
|
||||||
run: |
|
run: |
|
||||||
sshpass -e ssh -o StrictHostKeyChecking=no parch@${{ env.SSH_HOST }} "rm -rf ${{ env.REMOTE_DIR }} && mkdir -p ${{ env.REMOTE_DIR }}"
|
sshpass -p "$PASS" ssh -o StrictHostKeyChecking=no parch@$HOST "rm -rf $REMOTE_DIR && mkdir -p $REMOTE_DIR"
|
||||||
sshpass -e rsync -avz out/ParchLinux-${{ env.Desktop }}-latest.iso out/md5sum.txt parch@${{ env.SSH_HOST }}:${{ env.REMOTE_DIR }}
|
sshpass -p "$PASS" rsync -avz out/ParchLinux-${{ env.Desktop }}-latest.iso out/md5sum.txt parch@$HOST:$REMOTE_DIR
|
||||||
|
|
2
build.sh
2
build.sh
|
@ -45,7 +45,7 @@ main() {
|
||||||
install() {
|
install() {
|
||||||
set -e
|
set -e
|
||||||
pacman -Sy; pacman --noconfirm -S --needed git wget github-cli p7zip reflector rsync
|
pacman -Sy; pacman --noconfirm -S --needed git wget github-cli p7zip reflector rsync
|
||||||
wget https://git.parchlinux.com/repo/ppr/-/raw/main/x86_64/archiso-99-1-any.pkg.tar.zst
|
wget https://git.parchlinux.com/repos/ppr/raw/branch/main/x86_64/archiso-99-1-any.pkg.tar.zst
|
||||||
sudo pacman -U archiso-99-1-any.pkg.tar.zst --noconfirm
|
sudo pacman -U archiso-99-1-any.pkg.tar.zst --noconfirm
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,6 @@ f2fs-tools
|
||||||
fatresize
|
fatresize
|
||||||
fsarchiver
|
fsarchiver
|
||||||
git
|
git
|
||||||
gnu-netcat
|
|
||||||
gpart
|
gpart
|
||||||
gpm
|
gpm
|
||||||
gptfdisk
|
gptfdisk
|
||||||
|
@ -94,7 +93,6 @@ python-psutil
|
||||||
python-systemd
|
python-systemd
|
||||||
refind
|
refind
|
||||||
#reflector
|
#reflector
|
||||||
reiserfsprogs
|
|
||||||
rp-pppoe
|
rp-pppoe
|
||||||
rsync
|
rsync
|
||||||
rxvt-unicode-terminfo
|
rxvt-unicode-terminfo
|
||||||
|
|
Loading…
Add table
Reference in a new issue