1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 10:57:55 +01:00

use separate names

This commit is contained in:
Jason N. 2024-04-01 10:38:40 -04:00
parent fcd2f92f30
commit 4f61576670
6 changed files with 48 additions and 13 deletions

View file

@ -10,6 +10,9 @@ on:
flatpaks_refs_dir: flatpaks_refs_dir:
required: false required: false
type: string type: string
suffix:
required: false
type: string
jobs: jobs:
load_vars: load_vars:
@ -114,7 +117,7 @@ jobs:
flatpak_remote_refs_dir: ${{ inputs.flatpaks_refs_dir }} flatpak_remote_refs_dir: ${{ inputs.flatpaks_refs_dir }}
secure_boot_key_url: ${{ needs.load_vars.outputs.SECURE_BOOT_KEY_URL }} secure_boot_key_url: ${{ needs.load_vars.outputs.SECURE_BOOT_KEY_URL }}
enrollment_password: ${{ needs.load_vars.outputs.ENROLLMENT_PASSWORD }} enrollment_password: ${{ needs.load_vars.outputs.ENROLLMENT_PASSWORD }}
iso_name: build/${{ needs.load_vars.outputs.IMAGE_NAME }}-${{ matrix.version }}.iso iso_name: build/${{ needs.load_vars.outputs.IMAGE_NAME }}-${{ matrix.version }}${{ inputs.suffix && format('-{0}', inputs.suffix || '') }}.iso
- name: Save output - name: Save output
id: save_output id: save_output
@ -126,10 +129,10 @@ jobs:
id: upload id: upload
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: ${{ needs.load_vars.outputs.IMAGE_NAME }}-${{ matrix.version }} name: ${{ needs.load_vars.outputs.IMAGE_NAME }}-${{ matrix.version }}${{ inputs.suffix && format('-{0}', inputs.suffix || '') }}
path: | path: |
build/${{ needs.load_vars.outputs.IMAGE_NAME }}-${{ matrix.version }}.iso build/${{ needs.load_vars.outputs.IMAGE_NAME }}-${{ matrix.version }}${{ inputs.suffix && format('-{0}', inputs.suffix || '') }}.iso
build/${{ needs.load_vars.outputs.IMAGE_NAME }}-${{ matrix.version }}.iso-CHECKSUM build/${{ needs.load_vars.outputs.IMAGE_NAME }}-${{ matrix.version }}${{ inputs.suffix && format('-{0}', inputs.suffix || '') }}.iso-CHECKSUM
if-no-files-found: error if-no-files-found: error
retention-days: 0 retention-days: 0
compression-level: 0 compression-level: 0

View file

@ -7,6 +7,9 @@ on:
parent_job_name: parent_job_name:
required: true required: true
type: string type: string
suffix:
required: false
type: string
jobs: jobs:
load_vars: load_vars:

View file

@ -6,7 +6,10 @@ on:
type: string type: string
parent_job_name: parent_job_name:
required: true required: true
type: string type: string
suffix:
required: false
type: string
jobs: jobs:
load_vars: load_vars:
@ -72,7 +75,7 @@ jobs:
- name: Download generated ISO - name: Download generated ISO
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: ${{ format('{0}-{1}', needs.load_vars.outputs.IMAGE_NAME, matrix.version) }} name: ${{ format('{0}-{1}', needs.load_vars.outputs.IMAGE_NAME, matrix.version) }}${{ inputs.suffix && format('-{0}', inputs.suffix || '') }}
- name: Run ISO checks - name: Run ISO checks
run: | run: |
@ -86,7 +89,7 @@ jobs:
FLATPAK_REMOTE_REFS_DIR=${{ needs.load_vars.outputs.FLATPAK_REMOTE_REFS_DIR }} \ FLATPAK_REMOTE_REFS_DIR=${{ needs.load_vars.outputs.FLATPAK_REMOTE_REFS_DIR }} \
SECURE_BOOT_KEY_URL=${{ needs.load_vars.outputs.SECURE_BOOT_KEY_URL }} \ SECURE_BOOT_KEY_URL=${{ needs.load_vars.outputs.SECURE_BOOT_KEY_URL }} \
ENROLLMENT_PASSWORD=${{ needs.load_vars.outputs.ENROLLMENT_PASSWORD }} \ ENROLLMENT_PASSWORD=${{ needs.load_vars.outputs.ENROLLMENT_PASSWORD }} \
ISO_NAME=${{ format('{0}-{1}', needs.load_vars.outputs.IMAGE_NAME, matrix.version) }}.iso ISO_NAME=${{ format('{0}-{1}', needs.load_vars.outputs.IMAGE_NAME, matrix.version) }}${{ inputs.suffix && format('-{0}', inputs.suffix || '') }}.iso
- name: Set status - name: Set status
if: inputs.pr && always() if: inputs.pr && always()

View file

@ -24,4 +24,7 @@ jobs:
- name: Run test - name: Run test
run: | run: |
/bin/bash tests/repo/vars.sh apt-get update
apt-get install -y make
make test/repo/install-deps
make test/repo

View file

@ -38,11 +38,32 @@ jobs:
uses: ./.github/workflows/build_iso.yml uses: ./.github/workflows/build_iso.yml
with: with:
pr: ${{ inputs.pr }} pr: ${{ inputs.pr }}
parent_job_name: ${{ inputs.parent_job_name && format('{0} / ', inputs.parent_job_name) }}Build ISO parent_job_name: ${{ inputs.parent_job_name && format('{0} / ', inputs.parent_job_name) }}Build ISO with Flatpaks
flatpaks_refs_dir: /github/workspace/flatpak_refs flatpaks_refs_dir: /github/workspace/flatpak_refs
suffix: flatpaks
build_iso_no_flatpaks: test_iso_flatpaks:
name: Build ISO without Flatpaks name: Test ISO with Flatpaks
needs:
- build_iso_flatpaks
uses: ./.github/workflows/test_iso.yml
with:
pr: ${{ inputs.pr }}
parent_job_name: ${{ inputs.parent_job_name && format('{0} / ', inputs.parent_job_name) }}Test ISO with Flatpaks
suffix: flatpaks
test_deployment_flatpaks:
name: Test Deployment with Flatpaks
needs:
- build_iso_flatpaks
uses: ./.github/workflows/test_deployment.yml
with:
pr: ${{ inputs.pr }}
parent_job_name: ${{ inputs.parent_job_name && format('{0} / ', inputs.parent_job_name) }}Test Deployment with Flatpaks
suffix: flatpaks
build_iso:
name: Build ISO
needs: needs:
- build_container - build_container
uses: ./.github/workflows/build_iso.yml uses: ./.github/workflows/build_iso.yml
@ -53,7 +74,7 @@ jobs:
test_iso: test_iso:
name: Test ISO name: Test ISO
needs: needs:
- build_iso_flatpaks - build_iso
uses: ./.github/workflows/test_iso.yml uses: ./.github/workflows/test_iso.yml
with: with:
pr: ${{ inputs.pr }} pr: ${{ inputs.pr }}
@ -62,7 +83,7 @@ jobs:
test_deployment: test_deployment:
name: Test Deployment name: Test Deployment
needs: needs:
- build_iso_flatpaks - build_iso
uses: ./.github/workflows/test_deployment.yml uses: ./.github/workflows/test_deployment.yml
with: with:
pr: ${{ inputs.pr }} pr: ${{ inputs.pr }}

View file

@ -6,4 +6,6 @@ $(REPO_TESTS):
chmod +x $@ chmod +x $@
./$@ ./$@
install-deps:
.PHONY: $(REPO_TESTS) .PHONY: $(REPO_TESTS)