Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 77 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,44 @@
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
run: just test-generate-iso-image

iso-from-image-podman:
timeout-minutes: 60
runs-on: ubuntu-latest
permissions:
contents: read # read repo contents
packages: write # write test package to ghcr
id-token: write # docker auth

steps:
- name: Maximize build space
uses: ublue-os/remove-unwanted-software@cc0becac701cf642c8f0a6613bbdaf5dc36b259e # v9

- uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
with:
install: true

- uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2

- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
fetch-depth: 0
ref: ${{ inputs.ref }}
repository: ${{ inputs.repo }}


- uses: extractions/setup-just@e33e0265a09d6d736e2ee1e0eb685ef1de4669ff # v3

Check warning

Code scanning / zizmor

detects commit SHAs that don't match their version comment tags Warning test

detects commit SHAs that don't match their version comment tags

- name: Run Build
env:
GH_TOKEN: ${{ github.token }}
GH_PR_EVENT_NUMBER: ${{ inputs.pr_event_number }}
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}

Check warning

Code scanning / zizmor

secrets referenced without a dedicated environment Warning test

secrets referenced without a dedicated environment
run: just test-generate-iso-image-podman

iso-from-image-web-ui:
timeout-minutes: 60
runs-on: ubuntu-latest
Expand Down Expand Up @@ -743,7 +781,45 @@
GH_TOKEN: ${{ github.token }}
GH_PR_EVENT_NUMBER: ${{ inputs.pr_event_number }}
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
run: just test-generate-iso-image
run: just test-generate-iso-recipe

iso-from-recipe-podman:
timeout-minutes: 60
runs-on: ubuntu-latest
permissions:
contents: read # read repo contents
packages: write # write test package to ghcr
id-token: write # docker auth

steps:
- name: Maximize build space
uses: ublue-os/remove-unwanted-software@cc0becac701cf642c8f0a6613bbdaf5dc36b259e # v9

- uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
with:
install: true

- uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2

- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
fetch-depth: 0
ref: ${{ inputs.ref }}
repository: ${{ inputs.repo }}

Check warning

Code scanning / zizmor

detects commit SHAs that don't match their version comment tags Warning test

detects commit SHAs that don't match their version comment tags

- uses: extractions/setup-just@e33e0265a09d6d736e2ee1e0eb685ef1de4669ff # v3

- name: Run Build
env:
GH_TOKEN: ${{ github.token }}
GH_PR_EVENT_NUMBER: ${{ inputs.pr_event_number }}
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}

Check warning

Code scanning / zizmor

secrets referenced without a dedicated environment Warning test

secrets referenced without a dedicated environment
run: just test-generate-iso-recipe-podman

container-podman-build:
timeout-minutes: 60
Expand Down
20 changes: 20 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,23 @@ test-generate-iso-image: generate-test-secret install-debug-all-features
set -eu
ISO_OUT=$(mktemp -d)
bluebuild generate-iso -vv --output-dir "$ISO_OUT" image ghcr.io/blue-build/cli/test:latest
rm -fr "$ISO_OUT"

# Run ISO generator for images with podman
test-generate-iso-image-podman: generate-test-secret install-debug-all-features
#!/usr/bin/env bash
set -eu
ISO_OUT=$(mktemp -d)
bluebuild generate-iso -B podman -vv --output-dir "$ISO_OUT" image ghcr.io/blue-build/cli/test:latest
rm -fr "$ISO_OUT"

# Run ISO generator for images using web-ui
test-generate-iso-web-ui: generate-test-secret install-debug-all-features
#!/usr/bin/env bash
set -eu
ISO_OUT=$(mktemp -d)
bluebuild generate-iso -vv --output-dir "$ISO_OUT" --web-ui image ghcr.io/blue-build/cli/test:latest
rm -fr "$ISO_OUT"

# Run ISO generator for images
test-generate-iso-recipe: generate-test-secret install-debug-all-features
Expand All @@ -318,6 +328,16 @@ test-generate-iso-recipe: generate-test-secret install-debug-all-features
ISO_OUT=$(mktemp -d)
cd integration-tests/test-repo
bluebuild generate-iso -vv --output-dir "$ISO_OUT" recipe recipes/recipe.yml
rm -fr "$ISO_OUT"

# Run ISO generator for images with podman
test-generate-iso-recipe-podman: generate-test-secret install-debug-all-features
#!/usr/bin/env bash
set -eu
ISO_OUT=$(mktemp -d)
cd integration-tests/test-repo
bluebuild generate-iso -B podman -vv --output-dir "$ISO_OUT" recipe recipes/recipe.yml
rm -fr "$ISO_OUT"

# Build a local cli image
build-local-cli-image:
Expand Down
Loading