-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(iso): Create generate-iso command (#192)
## Tasks - [x] Add ctrl-c handler to kill spawned children - [x] add more args to support all variables - [x] Add integration test
- Loading branch information
Showing
25 changed files
with
738 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -416,3 +416,97 @@ jobs: | |
bluebuild template -vv | tee Containerfile | ||
grep -q 'ARG IMAGE_REGISTRY=ghcr.io/blue-build' Containerfile || exit 1 | ||
bluebuild build --retry-push -B buildah -I podman -S sigstore --squash --push -vv recipes/recipe.yml recipes/recipe-39.yml | ||
iso-from-image: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
id-token: write | ||
needs: | ||
- build | ||
if: needs.build.outputs.push == 'true' | ||
|
||
steps: | ||
- name: Maximize build space | ||
uses: ublue-os/remove-unwanted-software@v6 | ||
|
||
- uses: sigstore/[email protected] | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
install: true | ||
|
||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{github.event.pull_request.head.ref}} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
|
||
- name: Install bluebuild | ||
run: | | ||
cargo install --path . --debug --all-features | ||
- name: Expose GitHub Runtime | ||
uses: crazy-max/ghaction-github-runtime@v3 | ||
|
||
- name: Run Build | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
GH_PR_EVENT_NUMBER: ${{ github.event.number }} | ||
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }} | ||
BB_BUILDKIT_CACHE_GHA: true | ||
run: | | ||
cd integration-tests/test-repo | ||
bluebuild generate-iso image ghcr.io/blue-build/cli/test:40 | ||
iso-from-recipe: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
id-token: write | ||
needs: | ||
- build | ||
if: needs.build.outputs.push == 'true' | ||
|
||
steps: | ||
- name: Maximize build space | ||
uses: ublue-os/remove-unwanted-software@v6 | ||
|
||
- uses: sigstore/[email protected] | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
install: true | ||
|
||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{github.event.pull_request.head.ref}} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
|
||
- name: Install bluebuild | ||
run: | | ||
cargo install --path . --debug --all-features | ||
- name: Expose GitHub Runtime | ||
uses: crazy-max/ghaction-github-runtime@v3 | ||
|
||
- name: Run Build | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
GH_PR_EVENT_NUMBER: ${{ github.event.number }} | ||
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }} | ||
BB_BUILDKIT_CACHE_GHA: true | ||
run: | | ||
cd integration-tests/test-repo | ||
bluebuild generate-iso -vv recipe recipes/recipe.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -414,3 +414,97 @@ jobs: | |
bluebuild template -vv | tee Containerfile | ||
grep -q 'ARG IMAGE_REGISTRY=ghcr.io/blue-build' Containerfile || exit 1 | ||
bluebuild build --retry-push -B buildah -I podman -S sigstore --squash --push -vv recipes/recipe.yml recipes/recipe-39.yml | ||
iso-from-image: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
id-token: write | ||
needs: | ||
- build | ||
if: github.repository == 'blue-build/cli' | ||
|
||
steps: | ||
- name: Maximize build space | ||
uses: ublue-os/remove-unwanted-software@v6 | ||
|
||
- uses: sigstore/[email protected] | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
install: true | ||
|
||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{github.event.pull_request.head.ref}} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
|
||
- name: Install bluebuild | ||
run: | | ||
cargo install --path . --debug --all-features | ||
- name: Expose GitHub Runtime | ||
uses: crazy-max/ghaction-github-runtime@v3 | ||
|
||
- name: Run Build | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
GH_PR_EVENT_NUMBER: ${{ github.event.number }} | ||
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }} | ||
BB_BUILDKIT_CACHE_GHA: true | ||
run: | | ||
cd integration-tests/test-repo | ||
bluebuild generate-iso image ghcr.io/blue-build/cli/test:40 | ||
iso-from-recipe: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
id-token: write | ||
needs: | ||
- build | ||
if: github.repository == 'blue-build/cli' | ||
|
||
steps: | ||
- name: Maximize build space | ||
uses: ublue-os/remove-unwanted-software@v6 | ||
|
||
- uses: sigstore/[email protected] | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
install: true | ||
|
||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{github.event.pull_request.head.ref}} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
|
||
- name: Install bluebuild | ||
run: | | ||
cargo install --path . --debug --all-features | ||
- name: Expose GitHub Runtime | ||
uses: crazy-max/ghaction-github-runtime@v3 | ||
|
||
- name: Run Build | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
GH_PR_EVENT_NUMBER: ${{ github.event.number }} | ||
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }} | ||
BB_BUILDKIT_CACHE_GHA: true | ||
run: | | ||
cd integration-tests/test-repo | ||
bluebuild generate-iso -vv recipe recipes/recipe.yml |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.