Compare commits

...

8 commits

Author SHA1 Message Date
241d00e2d2 Trying to fix the workflow
All checks were successful
Build and Deploy ISO / build_iso (release) Successful in 23m54s
2025-02-16 23:38:38 +03:30
b5aac1d777 Trying to fix the workflow
Some checks failed
Build and Deploy ISO / build_iso (release) Failing after 21m37s
2025-02-16 23:00:35 +03:30
a7ba10f01f Update .forgejo/workflows/build.yaml
Some checks failed
Build and Deploy ISO / build_iso (release) Failing after 16m55s
2025-02-16 09:58:10 -05:00
74e4abfbea trying to fix
Some checks failed
Build and Deploy ISO / build_iso (release) Failing after 23m29s
added " "
2025-02-13 13:09:13 -05:00
107e43139c fixed env
Some checks failed
Build and Deploy ISO / build_iso (release) Failing after 35m45s
2025-02-13 19:43:17 +03:30
fd5fba6be5 ReTry
Some checks failed
Build and Deploy ISO / build_iso (release) Failing after 27m22s
2025-02-13 19:10:01 +03:30
8cf386b53e ReTry
Some checks failed
Build and Deploy ISO / build_iso (release) Failing after 33m0s
2025-02-13 18:29:08 +03:30
a480a113f9 ReTry
Some checks failed
Build and Deploy ISO / build_iso (release) Failing after 31m16s
2025-02-13 17:53:40 +03:30

View file

@ -17,9 +17,9 @@ jobs:
run: pacman -Sy --noconfirm nodejs npm git sudo
- name: Checkout code
uses: actions/checkout@v4
- name: update
- name: Update system
run: pacman -Syyuu --noconfirm
- name: whoami
- name: Check user
run: whoami
- name: Build ISO
run: |
@ -30,31 +30,6 @@ jobs:
md5sum out/ParchLinux-${{ env.Desktop }}-latest.iso > out/md5sum.txt
echo "Build completed. Files generated:"
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
run: pacman -Syu --noconfirm sshpass rsync
@ -68,7 +43,8 @@ jobs:
- name: Deploy files
env:
SSHPASS: ${{ secrets.SSHPASS }}
PASS: ${{ secrets.PASS }}
HOST: ${{ secrets.HOST }}
run: |
sshpass -e ssh -o StrictHostKeyChecking=no parch@${{ env.SSH_HOST }} "rm -rf ${{ env.REMOTE_DIR }} && mkdir -p ${{ env.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" ssh -o StrictHostKeyChecking=no parch@$HOST "rm -rf $REMOTE_DIR && mkdir -p $REMOTE_DIR"
sshpass -p "$PASS" rsync -avz out/ParchLinux-${{ env.Desktop }}-latest.iso out/md5sum.txt parch@$HOST:$REMOTE_DIR