Compare commits
9 commits
2025.02.10
...
main
Author | SHA1 | Date | |
---|---|---|---|
241d00e2d2 | |||
b5aac1d777 | |||
a7ba10f01f | |||
74e4abfbea | |||
107e43139c | |||
fd5fba6be5 | |||
8cf386b53e | |||
a480a113f9 | |||
e20e0c3a89 |
2 changed files with 6 additions and 31 deletions
|
@ -17,9 +17,9 @@ jobs:
|
||||||
run: pacman -Sy --noconfirm nodejs npm git sudo
|
run: pacman -Sy --noconfirm nodejs npm git sudo
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: update
|
- name: Update system
|
||||||
run: pacman -Syyuu --noconfirm
|
run: pacman -Syyuu --noconfirm
|
||||||
- name: whoami
|
- name: Check user
|
||||||
run: whoami
|
run: whoami
|
||||||
- name: Build ISO
|
- name: Build ISO
|
||||||
run: |
|
run: |
|
||||||
|
@ -30,31 +30,6 @@ jobs:
|
||||||
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
|
|
||||||
options: --privileged
|
|
||||||
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
|
||||||
|
|
||||||
|
@ -68,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
|
||||||
|
|
|
@ -31,7 +31,6 @@ f2fs-tools
|
||||||
fatresize
|
fatresize
|
||||||
fsarchiver
|
fsarchiver
|
||||||
git
|
git
|
||||||
gnu-netcat
|
|
||||||
gpart
|
gpart
|
||||||
gpm
|
gpm
|
||||||
gptfdisk
|
gptfdisk
|
||||||
|
|
Loading…
Add table
Reference in a new issue