Update build.yaml
This commit is contained in:
parent
51f27db206
commit
3a874c1469
1 changed files with 9 additions and 5 deletions
14
.github/workflows/build.yaml
vendored
14
.github/workflows/build.yaml
vendored
|
@ -22,19 +22,23 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install Packages via Pacman
|
||||
run: pacman -Sy; pacman --noconfirm -S git archiso python python-pygithub github-cli reflector p7zip openssh sshpass rsync
|
||||
run: pacman -Sy; pacman --noconfirm -S git archiso python python-pygithub github-cli reflector p7zip openssh sshpass rsync wget
|
||||
- name: Build image
|
||||
run: mkarchiso -v iso/
|
||||
run: |
|
||||
mkdir out
|
||||
cd out
|
||||
wget https://mirror.parchlinux.com/beta/ParchLinux.gnome.beta.iso
|
||||
# mkarchiso -v iso/
|
||||
- name: create .ssh folder
|
||||
run: mkdir ~/.ssh
|
||||
- name: generate ssh-key
|
||||
run: ssh-keyscan -H {{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
|
||||
run: ssh-keyscan -H "{{ secrets.SSH_HOST }}" >> ~/.ssh/known_hosts
|
||||
- name: remove last iso
|
||||
run: sshpass -p "{{ secrets.SSH_PASS }}" ssh root@{{ secrets.SSH_HOST }} bash -c "rm -rf /srv/http/test/*"
|
||||
run: sshpass -p "{{ secrets.SSH_PASS }}" ssh "root@{{ secrets.SSH_HOST }}" bash -c "rm -rf /srv/http/test/*"
|
||||
- name: rename iso
|
||||
run: mv "$(ls out/*.iso)" out/Parchlinux-test-beta.iso
|
||||
- name: upload iso to host
|
||||
run: sshpass -p "{{ secrets.SSH_PASS }}" rsync -r "out/$(ls out/*.iso)" root@{{ secrets.SSH_HOST }}:/srv/http/test
|
||||
run: sshpass -p "{{ secrets.SSH_PASS }}" rsync -r "out/$(ls out/*.iso)" "root@{{ secrets.SSH_HOST }}:/srv/http/test"
|
||||
- name: Upload iso to the release
|
||||
run: |
|
||||
cd ./out
|
||||
|
|
Loading…
Add table
Reference in a new issue