mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
remove conditional create container
This commit is contained in:
parent
ec1403592f
commit
88824598f2
1 changed files with 0 additions and 37 deletions
37
.github/workflows/build-and-test.yml
vendored
37
.github/workflows/build-and-test.yml
vendored
|
|
@ -17,30 +17,8 @@ env:
|
||||||
VARIANT: 'Server'
|
VARIANT: 'Server'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-changes:
|
|
||||||
name: Check Changes
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
container: ${{ steps.changes.outputs.container }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- uses: dorny/paths-filter@v2
|
|
||||||
id: changes
|
|
||||||
with:
|
|
||||||
filters: |
|
|
||||||
container:
|
|
||||||
- 'Containerfile'
|
|
||||||
- '/lorax_templates/**'
|
|
||||||
- '/xorriso/**'
|
|
||||||
- '/Makefile'
|
|
||||||
- '/entrypoint.sh'
|
|
||||||
|
|
||||||
build-container:
|
build-container:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: needs.check-changes.outputs.container == 'true'
|
|
||||||
needs:
|
|
||||||
- check-changes
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
|
@ -79,9 +57,7 @@ jobs:
|
||||||
build-and-push-iso:
|
build-and-push-iso:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- check-changes
|
|
||||||
- build-container
|
- build-container
|
||||||
if: always() && (needs.build-container.result == 'success' || needs.build-container.result == 'skipped')
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
|
@ -104,7 +80,6 @@ jobs:
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
|
|
||||||
- name: Build ISO with new container
|
- name: Build ISO with new container
|
||||||
if: needs.check-changes.outputs.container == 'true'
|
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
arch: ${{ env.ARCH}}
|
arch: ${{ env.ARCH}}
|
||||||
|
|
@ -113,17 +88,6 @@ jobs:
|
||||||
version: ${{ env.VERSION }}
|
version: ${{ env.VERSION }}
|
||||||
variant: ${{ env.VARIANT }}
|
variant: ${{ env.VARIANT }}
|
||||||
|
|
||||||
- name: Build ISO with latest container
|
|
||||||
if: needs.check-changes.outputs.container == 'false'
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
arch: ${{ env.ARCH}}
|
|
||||||
image_name: ${{ env.IMAGE_NAME}}
|
|
||||||
image_repo: ${{ env.IMAGE_REPO}}
|
|
||||||
version: ${{ env.VERSION }}
|
|
||||||
variant: ${{ env.VARIANT }}
|
|
||||||
action_version: 'latest'
|
|
||||||
|
|
||||||
- name: Rename ISO
|
- name: Rename ISO
|
||||||
run: |
|
run: |
|
||||||
mv build/deploy.iso build/${{ env.IMAGE_NAME }}-${{ env.VERSION }}.iso
|
mv build/deploy.iso build/${{ env.IMAGE_NAME }}-${{ env.VERSION }}.iso
|
||||||
|
|
@ -143,7 +107,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- build-and-push-iso
|
- build-and-push-iso
|
||||||
if: always() && needs.build-and-push-iso.result == 'success'
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue