Skip to content

Commit

Permalink
Build Live Media with GitHub Actions AlmaLinux#21
Browse files Browse the repository at this point in the history
  • Loading branch information
yuravk committed Jun 14, 2024
1 parent b8b0a76 commit f415ce2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-media.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,17 +164,19 @@ jobs:
sudo vagrant ssh almalinux -c "sudo livemedia-creator --ks=/sig-livemedia/kickstarts/${{ env.kickstart }} --no-virt --resultdir /vagrant/iso_${{ matrix.image_types}} --project 'AlmaLinux Live' --make-iso --iso-only --iso-name '${{ env.iso_name }}' --releasever 9.${{ env.version_minor }} --volid '${{ env.volid }}' --nomacboot --logfile /vagrant/logs/livemedia.log"
- name: Get media
id: get-media
run: |
sudo vagrant scp almalinux:/vagrant/iso_${{ matrix.image_types}}/${{ env.iso_name }} ${{github.action_path}}/
- name: Collect livemedia-creator log
if: success() || failure()
run: |
sudo vagrant scp almalinux:/vagrant/logs/livemedia.log ${{github.action_path}}/
sudo vagrant scp almalinux:/vagrant/logs/*.log ${{github.action_path}}/
- name: Collect anaconda logs
if: success() || failure()
run: |
sudo vagrant ssh almalinux -c "sudo ls -la /root/anaconda/*.log"
sudo vagrant scp almalinux:/root/anaconda/*.log ${{github.action_path}}/
- uses: actions/upload-artifact@v4
Expand All @@ -184,7 +186,7 @@ jobs:
path: ${{github.action_path}}/*.log

- uses: actions/upload-artifact@v4
if: success() || failure()
if: steps.get-media.outcome == 'success'
with:
name: ${{ env.iso_name }}
compression-level: 0
Expand Down

0 comments on commit f415ce2

Please sign in to comment.