chore: Rework the workflows to make it easier to manage
This commit is contained in:
parent
44cecab3f4
commit
0f4621ca66
10 changed files with 191 additions and 792 deletions
535
.github/workflows/build-pr.yml
vendored
535
.github/workflows/build-pr.yml
vendored
|
|
@ -1,535 +0,0 @@
|
||||||
name: Earthly PR +build
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
env:
|
|
||||||
FORCE_COLOR: 1
|
|
||||||
CLICOLOR_FORCE: 1
|
|
||||||
RUST_LOG_STYLE: always
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
arm64-prebuild:
|
|
||||||
timeout-minutes: 10
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.repository == github.event.pull_request.head.repo.full_name
|
|
||||||
steps:
|
|
||||||
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
|
||||||
|
|
||||||
- name: Earthly login
|
|
||||||
env:
|
|
||||||
EARTHLY_SAT_TOKEN: ${{ secrets.EARTHLY_SAT_TOKEN }}
|
|
||||||
run: |
|
|
||||||
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
|
|
||||||
earthly org s blue-build
|
|
||||||
earthly sat s arm
|
|
||||||
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
fetch-depth: 0
|
|
||||||
ref: ${{github.event.pull_request.head.ref}}
|
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ github.token }}
|
|
||||||
|
|
||||||
- name: Run build
|
|
||||||
id: build
|
|
||||||
run: |
|
|
||||||
earthly --ci --push -P +prebuild
|
|
||||||
|
|
||||||
amd64-prebuild:
|
|
||||||
timeout-minutes: 10
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.repository == github.event.pull_request.head.repo.full_name
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
|
||||||
|
|
||||||
- name: Earthly login
|
|
||||||
env:
|
|
||||||
EARTHLY_SAT_TOKEN: ${{ secrets.EARTHLY_SAT_TOKEN }}
|
|
||||||
run: |
|
|
||||||
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
|
|
||||||
earthly org s blue-build
|
|
||||||
earthly sat s amd
|
|
||||||
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
fetch-depth: 0
|
|
||||||
ref: ${{github.event.pull_request.head.ref}}
|
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ github.token }}
|
|
||||||
|
|
||||||
- name: Run build
|
|
||||||
id: build
|
|
||||||
run: |
|
|
||||||
earthly --ci --push -P +prebuild
|
|
||||||
|
|
||||||
build-images:
|
|
||||||
timeout-minutes: 60
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.repository == github.event.pull_request.head.repo.full_name
|
|
||||||
needs:
|
|
||||||
- arm64-prebuild
|
|
||||||
- amd64-prebuild
|
|
||||||
steps:
|
|
||||||
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
|
||||||
|
|
||||||
- name: Earthly login
|
|
||||||
env:
|
|
||||||
EARTHLY_SAT_TOKEN: ${{ secrets.EARTHLY_SAT_TOKEN }}
|
|
||||||
run: |
|
|
||||||
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
|
|
||||||
earthly org s blue-build
|
|
||||||
earthly sat s pr
|
|
||||||
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
fetch-depth: 0
|
|
||||||
ref: ${{github.event.pull_request.head.ref}}
|
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ github.token }}
|
|
||||||
|
|
||||||
- name: Run build
|
|
||||||
id: build
|
|
||||||
run: |
|
|
||||||
earthly --ci --push -P +build-images-all
|
|
||||||
|
|
||||||
build-scripts:
|
|
||||||
timeout-minutes: 5
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.repository == github.event.pull_request.head.repo.full_name
|
|
||||||
steps:
|
|
||||||
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
|
||||||
|
|
||||||
- name: Earthly login
|
|
||||||
env:
|
|
||||||
EARTHLY_SAT_TOKEN: ${{ secrets.EARTHLY_SAT_TOKEN }}
|
|
||||||
if: env.EARTHLY_SAT_TOKEN != null
|
|
||||||
run: |
|
|
||||||
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
|
|
||||||
earthly org s blue-build
|
|
||||||
earthly sat s pr
|
|
||||||
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
fetch-depth: 0
|
|
||||||
ref: ${{github.event.pull_request.head.ref}}
|
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ github.token }}
|
|
||||||
|
|
||||||
- name: Run build
|
|
||||||
id: build
|
|
||||||
run: |
|
|
||||||
earthly --ci --push -P +build-scripts-all
|
|
||||||
|
|
||||||
integration-tests:
|
|
||||||
permissions:
|
|
||||||
packages: write
|
|
||||||
timeout-minutes: 60
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Maximize build space
|
|
||||||
uses: ublue-os/remove-unwanted-software@e3843c85f5f9b73626845de0f5d44fb78ce22e12 # v6
|
|
||||||
|
|
||||||
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
|
||||||
|
|
||||||
# Setup repo and add caching
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
fetch-depth: 0
|
|
||||||
ref: ${{github.event.pull_request.head.ref}}
|
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
||||||
|
|
||||||
- name: Run integration tests
|
|
||||||
run: |
|
|
||||||
earthly bootstrap
|
|
||||||
earthly --ci -P ./integration-tests+all
|
|
||||||
|
|
||||||
test:
|
|
||||||
timeout-minutes: 10
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
|
||||||
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
fetch-depth: 0
|
|
||||||
ref: ${{github.event.pull_request.head.ref}}
|
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
||||||
|
|
||||||
- name: Run test
|
|
||||||
id: build
|
|
||||||
run: |
|
|
||||||
earthly --ci +test
|
|
||||||
|
|
||||||
lint:
|
|
||||||
timeout-minutes: 10
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
|
||||||
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
fetch-depth: 0
|
|
||||||
ref: ${{github.event.pull_request.head.ref}}
|
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
||||||
|
|
||||||
- name: Run lint
|
|
||||||
id: build
|
|
||||||
run: |
|
|
||||||
earthly --ci +lint
|
|
||||||
|
|
||||||
docker-build:
|
|
||||||
timeout-minutes: 30
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Maximize build space
|
|
||||||
uses: ublue-os/remove-unwanted-software@e3843c85f5f9b73626845de0f5d44fb78ce22e12 # v6
|
|
||||||
|
|
||||||
- uses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.3.0
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
|
|
||||||
with:
|
|
||||||
install: true
|
|
||||||
|
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@9399c7bb15d4c7d47b27263d024f0a4978346ba4 # v1.11.0
|
|
||||||
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
fetch-depth: 0
|
|
||||||
ref: ${{github.event.pull_request.head.ref}}
|
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
||||||
|
|
||||||
- name: Expose GitHub Runtime
|
|
||||||
uses: crazy-max/ghaction-github-runtime@b3a9207c0e1ef41f4cf215303c976869d0c2c1c4 # v3.0.0
|
|
||||||
|
|
||||||
- uses: extractions/setup-just@69d82fb0233557aec017ef13706851d0694e0f1d # v1
|
|
||||||
|
|
||||||
- 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: just test-docker-build
|
|
||||||
|
|
||||||
rechunk-build:
|
|
||||||
timeout-minutes: 30
|
|
||||||
runs-on: ubuntu-24.04
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Maximize build space
|
|
||||||
uses: ublue-os/remove-unwanted-software@e3843c85f5f9b73626845de0f5d44fb78ce22e12 # v6
|
|
||||||
|
|
||||||
- uses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.3.0
|
|
||||||
with:
|
|
||||||
install-dir: /usr/bin
|
|
||||||
use-sudo: true
|
|
||||||
|
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@9399c7bb15d4c7d47b27263d024f0a4978346ba4 # v1.11.0
|
|
||||||
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
fetch-depth: 0
|
|
||||||
ref: ${{github.event.pull_request.head.ref}}
|
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
||||||
|
|
||||||
- name: Expose GitHub Runtime
|
|
||||||
uses: crazy-max/ghaction-github-runtime@b3a9207c0e1ef41f4cf215303c976869d0c2c1c4 # v3.0.0
|
|
||||||
|
|
||||||
- uses: extractions/setup-just@69d82fb0233557aec017ef13706851d0694e0f1d # v1
|
|
||||||
|
|
||||||
- name: Run Build
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ github.token }}
|
|
||||||
GH_PR_EVENT_NUMBER: ${{ github.event.number }}
|
|
||||||
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
|
|
||||||
run: |
|
|
||||||
export CARGO_HOME=$HOME/.cargo
|
|
||||||
just test-fresh-rechunk-build
|
|
||||||
just test-rechunk-build
|
|
||||||
|
|
||||||
arm64-build:
|
|
||||||
timeout-minutes: 60
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Maximize build space
|
|
||||||
uses: ublue-os/remove-unwanted-software@e3843c85f5f9b73626845de0f5d44fb78ce22e12 # v6
|
|
||||||
|
|
||||||
- uses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.3.0
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
|
|
||||||
with:
|
|
||||||
install: true
|
|
||||||
|
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@9399c7bb15d4c7d47b27263d024f0a4978346ba4 # v1.11.0
|
|
||||||
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
fetch-depth: 0
|
|
||||||
ref: ${{github.event.pull_request.head.ref}}
|
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
||||||
|
|
||||||
- name: Expose GitHub Runtime
|
|
||||||
uses: crazy-max/ghaction-github-runtime@b3a9207c0e1ef41f4cf215303c976869d0c2c1c4 # v3.0.0
|
|
||||||
|
|
||||||
- uses: extractions/setup-just@69d82fb0233557aec017ef13706851d0694e0f1d # v1
|
|
||||||
|
|
||||||
- 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: just test-arm64-build
|
|
||||||
|
|
||||||
docker-build-external-login:
|
|
||||||
timeout-minutes: 30
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.repository == github.event.pull_request.head.repo.full_name
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Maximize build space
|
|
||||||
uses: ublue-os/remove-unwanted-software@e3843c85f5f9b73626845de0f5d44fb78ce22e12 # v6
|
|
||||||
|
|
||||||
- uses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.3.0
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
|
|
||||||
with:
|
|
||||||
install: true
|
|
||||||
|
|
||||||
- name: Docker Login
|
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ github.token }}
|
|
||||||
|
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@9399c7bb15d4c7d47b27263d024f0a4978346ba4 # v1.11.0
|
|
||||||
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
fetch-depth: 0
|
|
||||||
ref: ${{github.event.pull_request.head.ref}}
|
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
||||||
|
|
||||||
- name: Expose GitHub Runtime
|
|
||||||
uses: crazy-max/ghaction-github-runtime@b3a9207c0e1ef41f4cf215303c976869d0c2c1c4 # v3.0.0
|
|
||||||
|
|
||||||
- uses: extractions/setup-just@69d82fb0233557aec017ef13706851d0694e0f1d # v1
|
|
||||||
|
|
||||||
- name: Run Build
|
|
||||||
env:
|
|
||||||
GH_PR_EVENT_NUMBER: ${{ github.event.number }}
|
|
||||||
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
|
|
||||||
BB_BUILDKIT_CACHE_GHA: true
|
|
||||||
run: just test-docker-build-external-login
|
|
||||||
|
|
||||||
podman-build:
|
|
||||||
timeout-minutes: 30
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Maximize build space
|
|
||||||
uses: ublue-os/remove-unwanted-software@e3843c85f5f9b73626845de0f5d44fb78ce22e12 # v6
|
|
||||||
|
|
||||||
- uses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.3.0
|
|
||||||
|
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@9399c7bb15d4c7d47b27263d024f0a4978346ba4 # v1.11.0
|
|
||||||
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
fetch-depth: 0
|
|
||||||
ref: ${{github.event.pull_request.head.ref}}
|
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
||||||
|
|
||||||
- uses: extractions/setup-just@69d82fb0233557aec017ef13706851d0694e0f1d # v1
|
|
||||||
|
|
||||||
- name: Run Build
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ github.token }}
|
|
||||||
GH_PR_EVENT_NUMBER: ${{ github.event.number }}
|
|
||||||
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
|
|
||||||
run: just test-podman-build
|
|
||||||
|
|
||||||
buildah-build:
|
|
||||||
timeout-minutes: 30
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Maximize build space
|
|
||||||
uses: ublue-os/remove-unwanted-software@e3843c85f5f9b73626845de0f5d44fb78ce22e12 # v6
|
|
||||||
|
|
||||||
- uses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.3.0
|
|
||||||
|
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@9399c7bb15d4c7d47b27263d024f0a4978346ba4 # v1.11.0
|
|
||||||
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
fetch-depth: 0
|
|
||||||
ref: ${{github.event.pull_request.head.ref}}
|
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
||||||
|
|
||||||
- uses: extractions/setup-just@69d82fb0233557aec017ef13706851d0694e0f1d # v1
|
|
||||||
|
|
||||||
- name: Run Build
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ github.token }}
|
|
||||||
GH_PR_EVENT_NUMBER: ${{ github.event.number }}
|
|
||||||
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
|
|
||||||
run: just test-buildah-build
|
|
||||||
|
|
||||||
iso-from-image:
|
|
||||||
timeout-minutes: 30
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Maximize build space
|
|
||||||
uses: ublue-os/remove-unwanted-software@e3843c85f5f9b73626845de0f5d44fb78ce22e12 # v6
|
|
||||||
|
|
||||||
- uses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.3.0
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
|
|
||||||
with:
|
|
||||||
install: true
|
|
||||||
|
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@9399c7bb15d4c7d47b27263d024f0a4978346ba4 # v1.11.0
|
|
||||||
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
fetch-depth: 0
|
|
||||||
ref: ${{github.event.pull_request.head.ref}}
|
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
||||||
|
|
||||||
- name: Expose GitHub Runtime
|
|
||||||
uses: crazy-max/ghaction-github-runtime@b3a9207c0e1ef41f4cf215303c976869d0c2c1c4 # v3.0.0
|
|
||||||
|
|
||||||
- uses: extractions/setup-just@69d82fb0233557aec017ef13706851d0694e0f1d # v1
|
|
||||||
|
|
||||||
- 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: just test-generate-iso-image
|
|
||||||
|
|
||||||
iso-from-recipe:
|
|
||||||
timeout-minutes: 30
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Maximize build space
|
|
||||||
uses: ublue-os/remove-unwanted-software@e3843c85f5f9b73626845de0f5d44fb78ce22e12 # v6
|
|
||||||
|
|
||||||
- uses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.3.0
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
|
|
||||||
with:
|
|
||||||
install: true
|
|
||||||
|
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@9399c7bb15d4c7d47b27263d024f0a4978346ba4 # v1.11.0
|
|
||||||
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
fetch-depth: 0
|
|
||||||
ref: ${{github.event.pull_request.head.ref}}
|
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
||||||
|
|
||||||
- name: Expose GitHub Runtime
|
|
||||||
uses: crazy-max/ghaction-github-runtime@b3a9207c0e1ef41f4cf215303c976869d0c2c1c4 # v3.0.0
|
|
||||||
|
|
||||||
- uses: extractions/setup-just@69d82fb0233557aec017ef13706851d0694e0f1d # v1
|
|
||||||
|
|
||||||
- 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: just test-generate-iso-recipe
|
|
||||||
305
.github/workflows/build.yml
vendored
305
.github/workflows/build.yml
vendored
|
|
@ -1,15 +1,16 @@
|
||||||
name: Earthly main branch +all
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-main
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_call:
|
||||||
push:
|
inputs:
|
||||||
branches:
|
ref:
|
||||||
- main
|
required: true
|
||||||
|
type: string
|
||||||
|
repo:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
pr_event_number:
|
||||||
|
type: string
|
||||||
|
secrets:
|
||||||
|
TEST_SIGNING_SECRET:
|
||||||
env:
|
env:
|
||||||
FORCE_COLOR: 1
|
FORCE_COLOR: 1
|
||||||
CLICOLOR_FORCE: 1
|
CLICOLOR_FORCE: 1
|
||||||
|
|
@ -17,7 +18,7 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
timeout-minutes: 20
|
timeout-minutes: 40
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -27,8 +28,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{github.event.pull_request.head.ref}}
|
ref: ${{ inputs.ref }}
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
repository: ${{ inputs.repo }}
|
||||||
|
|
||||||
- name: Run build
|
- name: Run build
|
||||||
id: build
|
id: build
|
||||||
|
|
@ -36,7 +37,7 @@ jobs:
|
||||||
earthly --ci +test
|
earthly --ci +test
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
timeout-minutes: 20
|
timeout-minutes: 40
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -46,46 +47,33 @@ jobs:
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{github.event.pull_request.head.ref}}
|
ref: ${{ inputs.ref }}
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
repository: ${{ inputs.repo }}
|
||||||
|
|
||||||
|
|
||||||
- name: Run build
|
- name: Run build
|
||||||
id: build
|
id: build
|
||||||
run: |
|
run: |
|
||||||
earthly --ci +test
|
earthly --ci +lint
|
||||||
|
|
||||||
arm64-prebuild:
|
arm64-prebuild:
|
||||||
timeout-minutes: 60
|
timeout-minutes: 20
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-24.04-arm
|
||||||
if: github.repository == 'blue-build/cli'
|
if: inputs.repo == 'blue-build/cli'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Maximize build space
|
|
||||||
uses: ublue-os/remove-unwanted-software@e3843c85f5f9b73626845de0f5d44fb78ce22e12 # v6
|
|
||||||
env:
|
|
||||||
EARTHLY_SAT_TOKEN: ${{ secrets.EARTHLY_SAT_TOKEN }}
|
|
||||||
if: env.EARTHLY_SAT_TOKEN == null
|
|
||||||
|
|
||||||
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
||||||
|
|
||||||
- name: Earthly login
|
|
||||||
env:
|
|
||||||
EARTHLY_SAT_TOKEN: ${{ secrets.EARTHLY_SAT_TOKEN }}
|
|
||||||
if: env.EARTHLY_SAT_TOKEN != null
|
|
||||||
run: |
|
|
||||||
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
|
|
||||||
earthly org s blue-build
|
|
||||||
earthly sat s arm
|
|
||||||
|
|
||||||
# Setup repo and add caching
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
ref: main
|
fetch-depth: 0
|
||||||
|
ref: ${{ inputs.ref }}
|
||||||
|
repository: ${{ inputs.repo }}
|
||||||
|
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
||||||
if: github.token != null
|
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
|
|
@ -97,42 +85,30 @@ jobs:
|
||||||
earthly --ci --push -P +prebuild
|
earthly --ci --push -P +prebuild
|
||||||
|
|
||||||
amd64-prebuild:
|
amd64-prebuild:
|
||||||
timeout-minutes: 60
|
timeout-minutes: 20
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository == 'blue-build/cli'
|
if: inputs.repo == 'blue-build/cli'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Maximize build space
|
|
||||||
uses: ublue-os/remove-unwanted-software@e3843c85f5f9b73626845de0f5d44fb78ce22e12 # v6
|
|
||||||
env:
|
|
||||||
EARTHLY_SAT_TOKEN: ${{ secrets.EARTHLY_SAT_TOKEN }}
|
|
||||||
if: env.EARTHLY_SAT_TOKEN == null
|
|
||||||
|
|
||||||
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
||||||
|
|
||||||
- name: Earthly login
|
|
||||||
env:
|
|
||||||
EARTHLY_SAT_TOKEN: ${{ secrets.EARTHLY_SAT_TOKEN }}
|
|
||||||
if: env.EARTHLY_SAT_TOKEN != null
|
|
||||||
run: |
|
|
||||||
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
|
|
||||||
earthly org s blue-build
|
|
||||||
earthly sat s amd
|
|
||||||
|
|
||||||
# Setup repo and add caching
|
# Setup repo and add caching
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
ref: main
|
fetch-depth: 0
|
||||||
|
ref: ${{ inputs.ref }}
|
||||||
|
repository: ${{ inputs.repo }}
|
||||||
|
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
||||||
if: github.token != null
|
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ github.token }}
|
password: ${{ github.token }}
|
||||||
|
|
||||||
|
|
||||||
- name: Run build
|
- name: Run build
|
||||||
id: build
|
id: build
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -141,31 +117,20 @@ jobs:
|
||||||
build-scripts:
|
build-scripts:
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository == 'blue-build/cli'
|
if: inputs.repo == 'blue-build/cli'
|
||||||
steps:
|
steps:
|
||||||
- name: Maximize build space
|
|
||||||
uses: ublue-os/remove-unwanted-software@e3843c85f5f9b73626845de0f5d44fb78ce22e12 # v6
|
|
||||||
env:
|
|
||||||
EARTHLY_SAT_TOKEN: ${{ secrets.EARTHLY_SAT_TOKEN }}
|
|
||||||
if: env.EARTHLY_SAT_TOKEN == null
|
|
||||||
|
|
||||||
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
||||||
|
|
||||||
- name: Earthly login
|
- name: Set up QEMU
|
||||||
env:
|
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
|
||||||
EARTHLY_SAT_TOKEN: ${{ secrets.EARTHLY_SAT_TOKEN }}
|
|
||||||
if: env.EARTHLY_SAT_TOKEN != null
|
|
||||||
run: |
|
|
||||||
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
|
|
||||||
earthly org s blue-build
|
|
||||||
earthly sat s main
|
|
||||||
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{github.event.pull_request.head.ref}}
|
ref: ${{ inputs.ref }}
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
repository: ${{ inputs.repo }}
|
||||||
|
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
||||||
|
|
@ -174,6 +139,7 @@ jobs:
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ github.token }}
|
password: ${{ github.token }}
|
||||||
|
|
||||||
|
|
||||||
- name: Run build
|
- name: Run build
|
||||||
id: build
|
id: build
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -184,47 +150,40 @@ jobs:
|
||||||
packages: write
|
packages: write
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: inputs.repo == 'blue-build/cli'
|
||||||
needs:
|
needs:
|
||||||
- arm64-prebuild
|
- arm64-prebuild
|
||||||
- amd64-prebuild
|
- amd64-prebuild
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Maximize build space
|
|
||||||
uses: ublue-os/remove-unwanted-software@e3843c85f5f9b73626845de0f5d44fb78ce22e12 # v6
|
|
||||||
env:
|
|
||||||
EARTHLY_SAT_TOKEN: ${{ secrets.EARTHLY_SAT_TOKEN }}
|
|
||||||
if: env.EARTHLY_SAT_TOKEN == null
|
|
||||||
|
|
||||||
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
||||||
|
|
||||||
- name: Earthly login
|
- name: Set up QEMU
|
||||||
env:
|
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
|
||||||
EARTHLY_SAT_TOKEN: ${{ secrets.EARTHLY_SAT_TOKEN }}
|
|
||||||
if: env.EARTHLY_SAT_TOKEN != null
|
|
||||||
run: |
|
|
||||||
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
|
|
||||||
earthly org s blue-build
|
|
||||||
earthly sat s main
|
|
||||||
|
|
||||||
# Setup repo and add caching
|
# Setup repo and add caching
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
ref: main
|
fetch-depth: 0
|
||||||
|
ref: ${{ inputs.ref }}
|
||||||
|
repository: ${{ inputs.repo }}
|
||||||
|
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ github.token }}
|
||||||
|
|
||||||
|
|
||||||
- name: Run build
|
- name: Run build
|
||||||
if: github.repository == 'blue-build/cli'
|
if: inputs.repo == 'blue-build/cli'
|
||||||
run: earthly --push --ci -P +build-images-all
|
run: earthly --push --ci -P +build-images-all
|
||||||
|
|
||||||
- name: Run build fork
|
- name: Run build fork
|
||||||
if: github.repository != 'blue-build/cli'
|
if: inputs.repo != 'blue-build/cli'
|
||||||
run: earthly --ci -P +build-images-all
|
run: earthly --ci -P +build-images-all
|
||||||
|
|
||||||
integration-tests:
|
integration-tests:
|
||||||
|
|
@ -232,10 +191,6 @@ jobs:
|
||||||
packages: write
|
packages: write
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository == 'blue-build/cli'
|
|
||||||
needs:
|
|
||||||
- build-scripts
|
|
||||||
- amd64-prebuild
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Maximize build space
|
- name: Maximize build space
|
||||||
|
|
@ -247,10 +202,12 @@ jobs:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
ref: main
|
fetch-depth: 0
|
||||||
|
ref: ${{ inputs.ref }}
|
||||||
|
repository: ${{ inputs.repo }}
|
||||||
|
|
||||||
|
|
||||||
- name: Run integration tests
|
- name: Run integration tests
|
||||||
if: github.repository == 'blue-build/cli'
|
|
||||||
run: |
|
run: |
|
||||||
earthly bootstrap
|
earthly bootstrap
|
||||||
earthly --ci -P ./integration-tests+all
|
earthly --ci -P ./integration-tests+all
|
||||||
|
|
@ -262,9 +219,6 @@ jobs:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
id-token: write
|
id-token: write
|
||||||
if: github.repository == 'blue-build/cli'
|
|
||||||
needs:
|
|
||||||
- build-scripts
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Maximize build space
|
- name: Maximize build space
|
||||||
|
|
@ -283,7 +237,10 @@ jobs:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
ref: main
|
fetch-depth: 0
|
||||||
|
ref: ${{ inputs.ref }}
|
||||||
|
repository: ${{ inputs.repo }}
|
||||||
|
|
||||||
|
|
||||||
- name: Expose GitHub Runtime
|
- name: Expose GitHub Runtime
|
||||||
uses: crazy-max/ghaction-github-runtime@b3a9207c0e1ef41f4cf215303c976869d0c2c1c4 # v3.0.0
|
uses: crazy-max/ghaction-github-runtime@b3a9207c0e1ef41f4cf215303c976869d0c2c1c4 # v3.0.0
|
||||||
|
|
@ -293,13 +250,13 @@ jobs:
|
||||||
- name: Run Build
|
- name: Run Build
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
GH_PR_EVENT_NUMBER: ${{ github.event.number }}
|
GH_PR_EVENT_NUMBER: ${{ inputs.pr_event_number }}
|
||||||
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
|
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
|
||||||
BB_BUILDKIT_CACHE_GHA: true
|
BB_BUILDKIT_CACHE_GHA: true
|
||||||
run: just test-docker-build
|
run: just test-docker-build
|
||||||
|
|
||||||
rechunk-build:
|
rechunk-build:
|
||||||
timeout-minutes: 20
|
timeout-minutes: 40
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
@ -320,7 +277,10 @@ jobs:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
ref: main
|
fetch-depth: 0
|
||||||
|
ref: ${{ inputs.ref }}
|
||||||
|
repository: ${{ inputs.repo }}
|
||||||
|
|
||||||
|
|
||||||
- name: Expose GitHub Runtime
|
- name: Expose GitHub Runtime
|
||||||
uses: crazy-max/ghaction-github-runtime@b3a9207c0e1ef41f4cf215303c976869d0c2c1c4 # v3.0.0
|
uses: crazy-max/ghaction-github-runtime@b3a9207c0e1ef41f4cf215303c976869d0c2c1c4 # v3.0.0
|
||||||
|
|
@ -330,28 +290,30 @@ jobs:
|
||||||
- name: Run Build
|
- name: Run Build
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
GH_PR_EVENT_NUMBER: ${{ github.event.number }}
|
GH_PR_EVENT_NUMBER: ${{ inputs.pr_event_number }}
|
||||||
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
|
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
|
||||||
|
BB_BUILDKIT_CACHE_GHA: true
|
||||||
run: |
|
run: |
|
||||||
export CARGO_HOME=$HOME/.cargo
|
export CARGO_HOME=$HOME/.cargo
|
||||||
just test-fresh-rechunk-build
|
just test-fresh-rechunk-build
|
||||||
just test-rechunk-build
|
just test-rechunk-build
|
||||||
|
|
||||||
arm64-build:
|
arm64-build:
|
||||||
timeout-minutes: 40
|
timeout-minutes: 90
|
||||||
|
# runs-on: ubuntu-24.04-arm
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
id-token: write
|
id-token: write
|
||||||
if: github.repository == 'blue-build/cli'
|
|
||||||
needs:
|
|
||||||
- build-scripts
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Maximize build space
|
- name: Maximize build space
|
||||||
uses: ublue-os/remove-unwanted-software@e3843c85f5f9b73626845de0f5d44fb78ce22e12 # v6
|
uses: ublue-os/remove-unwanted-software@e3843c85f5f9b73626845de0f5d44fb78ce22e12 # v6
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
|
||||||
|
|
||||||
- uses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.3.0
|
- uses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.3.0
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
|
|
@ -365,8 +327,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{github.event.pull_request.head.ref}}
|
ref: ${{ inputs.ref }}
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
repository: ${{ inputs.repo }}
|
||||||
|
|
||||||
|
|
||||||
- name: Expose GitHub Runtime
|
- name: Expose GitHub Runtime
|
||||||
uses: crazy-max/ghaction-github-runtime@b3a9207c0e1ef41f4cf215303c976869d0c2c1c4 # v3.0.0
|
uses: crazy-max/ghaction-github-runtime@b3a9207c0e1ef41f4cf215303c976869d0c2c1c4 # v3.0.0
|
||||||
|
|
@ -376,7 +339,7 @@ jobs:
|
||||||
- name: Run Build
|
- name: Run Build
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
GH_PR_EVENT_NUMBER: ${{ github.event.number }}
|
GH_PR_EVENT_NUMBER: ${{ inputs.pr_event_number }}
|
||||||
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
|
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
|
||||||
BB_BUILDKIT_CACHE_GHA: true
|
BB_BUILDKIT_CACHE_GHA: true
|
||||||
run: just test-arm64-build
|
run: just test-arm64-build
|
||||||
|
|
@ -388,9 +351,6 @@ jobs:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
id-token: write
|
id-token: write
|
||||||
if: github.repository == 'blue-build/cli'
|
|
||||||
needs:
|
|
||||||
- build-scripts
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Maximize build space
|
- name: Maximize build space
|
||||||
|
|
@ -405,18 +365,23 @@ jobs:
|
||||||
|
|
||||||
- name: Docker Login
|
- name: Docker Login
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
||||||
|
if: inputs.repo == 'blue-build/cli'
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ github.token }}
|
password: ${{ github.token }}
|
||||||
|
|
||||||
|
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@9399c7bb15d4c7d47b27263d024f0a4978346ba4 # v1.11.0
|
- uses: actions-rust-lang/setup-rust-toolchain@9399c7bb15d4c7d47b27263d024f0a4978346ba4 # v1.11.0
|
||||||
|
|
||||||
# Setup repo and add caching
|
# Setup repo and add caching
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
ref: main
|
fetch-depth: 0
|
||||||
|
ref: ${{ inputs.ref }}
|
||||||
|
repository: ${{ inputs.repo }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: Expose GitHub Runtime
|
- name: Expose GitHub Runtime
|
||||||
|
|
@ -426,70 +391,12 @@ jobs:
|
||||||
|
|
||||||
- name: Run Build
|
- name: Run Build
|
||||||
env:
|
env:
|
||||||
GH_PR_EVENT_NUMBER: ${{ github.event.number }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
GH_PR_EVENT_NUMBER: ${{ inputs.pr_event_number }}
|
||||||
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
|
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
|
||||||
BB_BUILDKIT_CACHE_GHA: true
|
BB_BUILDKIT_CACHE_GHA: true
|
||||||
run: just test-docker-build-external-login
|
run: just test-docker-build-external-login
|
||||||
|
|
||||||
# Free trial is over
|
|
||||||
# docker-build-oauth-login:
|
|
||||||
# timeout-minutes: 60
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# permissions:
|
|
||||||
# contents: read
|
|
||||||
# packages: write
|
|
||||||
# id-token: write
|
|
||||||
# needs:
|
|
||||||
# - build-scripts
|
|
||||||
# if: github.repository == 'blue-build/cli'
|
|
||||||
|
|
||||||
# steps:
|
|
||||||
# - name: Google Auth
|
|
||||||
# id: auth
|
|
||||||
# uses: "google-github-actions/auth@v2"
|
|
||||||
# with:
|
|
||||||
# token_format: "access_token"
|
|
||||||
# service_account: ${{ secrets.SERVICE_ACCOUNT }}
|
|
||||||
# project_id: bluebuild-oidc
|
|
||||||
# create_credentials_file: false
|
|
||||||
# workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY }}
|
|
||||||
|
|
||||||
# - name: Maximize build space
|
|
||||||
# uses: ublue-os/remove-unwanted-software@e3843c85f5f9b73626845de0f5d44fb78ce22e12 # v6
|
|
||||||
|
|
||||||
# - uses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.3.0
|
|
||||||
|
|
||||||
# - name: Set up Docker Buildx
|
|
||||||
# uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
|
|
||||||
# with:
|
|
||||||
# install: true
|
|
||||||
|
|
||||||
# - uses: actions-rust-lang/setup-rust-toolchain@9399c7bb15d4c7d47b27263d024f0a4978346ba4 # v1.11.0
|
|
||||||
|
|
||||||
# - name: Docker Auth
|
|
||||||
# id: docker-auth
|
|
||||||
# uses: "docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0"
|
|
||||||
# with:
|
|
||||||
# username: "oauth2accesstoken"
|
|
||||||
# password: "${{ steps.auth.outputs.access_token }}"
|
|
||||||
# registry: us-east1-docker.pkg.dev
|
|
||||||
|
|
||||||
# - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
||||||
# with:
|
|
||||||
# ref: main
|
|
||||||
|
|
||||||
# - name: Expose GitHub Runtime
|
|
||||||
# uses: crazy-max/ghaction-github-runtime@b3a9207c0e1ef41f4cf215303c976869d0c2c1c4 # v3.0.0
|
|
||||||
|
|
||||||
# - uses: extractions/setup-just@69d82fb0233557aec017ef13706851d0694e0f1d # v1
|
|
||||||
|
|
||||||
# - name: Run Build
|
|
||||||
# env:
|
|
||||||
# GH_PR_EVENT_NUMBER: ${{ github.event.number }}
|
|
||||||
# COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
|
|
||||||
# BB_BUILDKIT_CACHE_GHA: true
|
|
||||||
# run: just test-docker-build-oauth-login
|
|
||||||
|
|
||||||
podman-build:
|
podman-build:
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -497,9 +404,6 @@ jobs:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
id-token: write
|
id-token: write
|
||||||
if: github.repository == 'blue-build/cli'
|
|
||||||
needs:
|
|
||||||
- build-scripts
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Maximize build space
|
- name: Maximize build space
|
||||||
|
|
@ -513,7 +417,10 @@ jobs:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
ref: main
|
fetch-depth: 0
|
||||||
|
ref: ${{ inputs.ref }}
|
||||||
|
repository: ${{ inputs.repo }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- uses: extractions/setup-just@69d82fb0233557aec017ef13706851d0694e0f1d # v1
|
- uses: extractions/setup-just@69d82fb0233557aec017ef13706851d0694e0f1d # v1
|
||||||
|
|
@ -521,8 +428,9 @@ jobs:
|
||||||
- name: Run Build
|
- name: Run Build
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
GH_PR_EVENT_NUMBER: ${{ github.event.number }}
|
GH_PR_EVENT_NUMBER: ${{ inputs.pr_event_number }}
|
||||||
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
|
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
|
||||||
|
BB_BUILDKIT_CACHE_GHA: true
|
||||||
run: just test-podman-build
|
run: just test-podman-build
|
||||||
|
|
||||||
buildah-build:
|
buildah-build:
|
||||||
|
|
@ -532,9 +440,6 @@ jobs:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
id-token: write
|
id-token: write
|
||||||
if: github.repository == 'blue-build/cli'
|
|
||||||
needs:
|
|
||||||
- build-scripts
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Maximize build space
|
- name: Maximize build space
|
||||||
|
|
@ -548,7 +453,10 @@ jobs:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
ref: main
|
fetch-depth: 0
|
||||||
|
ref: ${{ inputs.ref }}
|
||||||
|
repository: ${{ inputs.repo }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- uses: extractions/setup-just@69d82fb0233557aec017ef13706851d0694e0f1d # v1
|
- uses: extractions/setup-just@69d82fb0233557aec017ef13706851d0694e0f1d # v1
|
||||||
|
|
@ -556,8 +464,9 @@ jobs:
|
||||||
- name: Run Build
|
- name: Run Build
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
GH_PR_EVENT_NUMBER: ${{ github.event.number }}
|
GH_PR_EVENT_NUMBER: ${{ inputs.pr_event_number }}
|
||||||
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
|
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
|
||||||
|
BB_BUILDKIT_CACHE_GHA: true
|
||||||
run: just test-buildah-build
|
run: just test-buildah-build
|
||||||
|
|
||||||
iso-from-image:
|
iso-from-image:
|
||||||
|
|
@ -567,9 +476,6 @@ jobs:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
id-token: write
|
id-token: write
|
||||||
needs:
|
|
||||||
- build-scripts
|
|
||||||
if: github.repository == 'blue-build/cli'
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Maximize build space
|
- name: Maximize build space
|
||||||
|
|
@ -588,8 +494,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{github.event.pull_request.head.ref}}
|
ref: ${{ inputs.ref }}
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
repository: ${{ inputs.repo }}
|
||||||
|
|
||||||
|
|
||||||
- name: Expose GitHub Runtime
|
- name: Expose GitHub Runtime
|
||||||
uses: crazy-max/ghaction-github-runtime@b3a9207c0e1ef41f4cf215303c976869d0c2c1c4 # v3.0.0
|
uses: crazy-max/ghaction-github-runtime@b3a9207c0e1ef41f4cf215303c976869d0c2c1c4 # v3.0.0
|
||||||
|
|
@ -599,7 +506,7 @@ jobs:
|
||||||
- name: Run Build
|
- name: Run Build
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
GH_PR_EVENT_NUMBER: ${{ github.event.number }}
|
GH_PR_EVENT_NUMBER: ${{ inputs.pr_event_number }}
|
||||||
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
|
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
|
||||||
BB_BUILDKIT_CACHE_GHA: true
|
BB_BUILDKIT_CACHE_GHA: true
|
||||||
run: just test-generate-iso-image
|
run: just test-generate-iso-image
|
||||||
|
|
@ -611,9 +518,6 @@ jobs:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
id-token: write
|
id-token: write
|
||||||
needs:
|
|
||||||
- build-scripts
|
|
||||||
if: github.repository == 'blue-build/cli'
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Maximize build space
|
- name: Maximize build space
|
||||||
|
|
@ -632,8 +536,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{github.event.pull_request.head.ref}}
|
ref: ${{ inputs.ref }}
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
repository: ${{ inputs.repo }}
|
||||||
|
|
||||||
|
|
||||||
- name: Expose GitHub Runtime
|
- name: Expose GitHub Runtime
|
||||||
uses: crazy-max/ghaction-github-runtime@b3a9207c0e1ef41f4cf215303c976869d0c2c1c4 # v3.0.0
|
uses: crazy-max/ghaction-github-runtime@b3a9207c0e1ef41f4cf215303c976869d0c2c1c4 # v3.0.0
|
||||||
|
|
@ -643,7 +548,7 @@ jobs:
|
||||||
- name: Run Build
|
- name: Run Build
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
GH_PR_EVENT_NUMBER: ${{ github.event.number }}
|
GH_PR_EVENT_NUMBER: ${{ inputs.pr_event_number }}
|
||||||
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
|
COSIGN_PRIVATE_KEY: ${{ secrets.TEST_SIGNING_SECRET }}
|
||||||
BB_BUILDKIT_CACHE_GHA: true
|
BB_BUILDKIT_CACHE_GHA: true
|
||||||
run: just test-generate-iso-image
|
run: just test-generate-iso-image
|
||||||
|
|
|
||||||
23
.github/workflows/main.yml
vendored
Normal file
23
.github/workflows/main.yml
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
name: Main branch build
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-main
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
main_branch:
|
||||||
|
uses: ./.github/workflows/build.yml
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
id-token: write
|
||||||
|
with:
|
||||||
|
repo: ${{ github.repository }}
|
||||||
|
ref: main
|
||||||
|
secrets: inherit
|
||||||
21
.github/workflows/pr.yml
vendored
Normal file
21
.github/workflows/pr.yml
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
name: PR build
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pull_request:
|
||||||
|
uses: ./.github/workflows/build.yml
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
id-token: write
|
||||||
|
with:
|
||||||
|
repo: ${{ github.event.pull_request.head.repo.full_name }}
|
||||||
|
ref: ${{ github.event.pull_request.head.ref }}
|
||||||
|
pr_event_number: ${{ github.event.number }}
|
||||||
|
secrets: inherit
|
||||||
28
.github/workflows/tag.yml
vendored
28
.github/workflows/tag.yml
vendored
|
|
@ -16,15 +16,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
||||||
|
|
||||||
- name: Earthly login
|
|
||||||
env:
|
|
||||||
EARTHLY_SAT_TOKEN: ${{ secrets.EARTHLY_SAT_TOKEN }}
|
|
||||||
if: env.EARTHLY_SAT_TOKEN != null
|
|
||||||
run: |
|
|
||||||
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
|
|
||||||
earthly org s blue-build
|
|
||||||
earthly sat s arm
|
|
||||||
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
@ -51,15 +42,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
||||||
|
|
||||||
- name: Earthly login
|
|
||||||
env:
|
|
||||||
EARTHLY_SAT_TOKEN: ${{ secrets.EARTHLY_SAT_TOKEN }}
|
|
||||||
if: env.EARTHLY_SAT_TOKEN != null
|
|
||||||
run: |
|
|
||||||
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
|
|
||||||
earthly org s blue-build
|
|
||||||
earthly sat s amd
|
|
||||||
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
@ -91,11 +73,6 @@ jobs:
|
||||||
|
|
||||||
- uses: dtolnay/rust-toolchain@38b70195107dddab2c7bbd522bcf763bac00963b # stable
|
- uses: dtolnay/rust-toolchain@38b70195107dddab2c7bbd522bcf763bac00963b # stable
|
||||||
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
||||||
- name: Earthly login
|
|
||||||
run: |
|
|
||||||
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
|
|
||||||
earthly org s blue-build
|
|
||||||
earthly sat s tag
|
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
||||||
|
|
@ -131,11 +108,6 @@ jobs:
|
||||||
|
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
|
||||||
- name: Earthly login
|
|
||||||
run: |
|
|
||||||
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
|
|
||||||
earthly org s blue-build
|
|
||||||
earthly sat s tag
|
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
|
||||||
|
|
|
||||||
|
|
@ -19,14 +19,18 @@ modules:
|
||||||
scripts:
|
scripts:
|
||||||
- example.sh
|
- example.sh
|
||||||
|
|
||||||
- type: rpm-ostree
|
- type: dnf
|
||||||
repos:
|
repos:
|
||||||
|
files:
|
||||||
- https://copr.fedorainfracloud.org/coprs/atim/starship/repo/fedora-%OS_VERSION%/atim-starship-fedora-%OS_VERSION%.repo
|
- https://copr.fedorainfracloud.org/coprs/atim/starship/repo/fedora-%OS_VERSION%/atim-starship-fedora-%OS_VERSION%.repo
|
||||||
install:
|
install:
|
||||||
|
packages:
|
||||||
- micro
|
- micro
|
||||||
- starship
|
- starship
|
||||||
remove:
|
remove:
|
||||||
|
packages:
|
||||||
- firefox
|
- firefox
|
||||||
|
- firefox-langpacks
|
||||||
|
|
||||||
- type: signing
|
- type: signing
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,13 +22,16 @@ modules:
|
||||||
scripts:
|
scripts:
|
||||||
- example.sh
|
- example.sh
|
||||||
|
|
||||||
- type: rpm-ostree
|
- type: dnf
|
||||||
repos:
|
repos:
|
||||||
|
files:
|
||||||
- https://copr.fedorainfracloud.org/coprs/atim/starship/repo/fedora-%OS_VERSION%/atim-starship-fedora-%OS_VERSION%.repo
|
- https://copr.fedorainfracloud.org/coprs/atim/starship/repo/fedora-%OS_VERSION%/atim-starship-fedora-%OS_VERSION%.repo
|
||||||
install:
|
install:
|
||||||
|
packages:
|
||||||
- micro
|
- micro
|
||||||
- starship
|
- starship
|
||||||
remove:
|
remove:
|
||||||
|
packages:
|
||||||
- firefox
|
- firefox
|
||||||
- firefox-langpacks
|
- firefox-langpacks
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,13 +19,16 @@ modules:
|
||||||
scripts:
|
scripts:
|
||||||
- example.sh
|
- example.sh
|
||||||
|
|
||||||
- type: rpm-ostree
|
- type: dnf
|
||||||
repos:
|
repos:
|
||||||
|
files:
|
||||||
- https://copr.fedorainfracloud.org/coprs/atim/starship/repo/fedora-%OS_VERSION%/atim-starship-fedora-%OS_VERSION%.repo
|
- https://copr.fedorainfracloud.org/coprs/atim/starship/repo/fedora-%OS_VERSION%/atim-starship-fedora-%OS_VERSION%.repo
|
||||||
install:
|
install:
|
||||||
|
packages:
|
||||||
- micro
|
- micro
|
||||||
- starship
|
- starship
|
||||||
remove:
|
remove:
|
||||||
|
packages:
|
||||||
- firefox
|
- firefox
|
||||||
- firefox-langpacks
|
- firefox-langpacks
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,13 +19,16 @@ modules:
|
||||||
scripts:
|
scripts:
|
||||||
- example.sh
|
- example.sh
|
||||||
|
|
||||||
- type: rpm-ostree
|
- type: dnf
|
||||||
repos:
|
repos:
|
||||||
|
files:
|
||||||
- https://copr.fedorainfracloud.org/coprs/atim/starship/repo/fedora-%OS_VERSION%/atim-starship-fedora-%OS_VERSION%.repo
|
- https://copr.fedorainfracloud.org/coprs/atim/starship/repo/fedora-%OS_VERSION%/atim-starship-fedora-%OS_VERSION%.repo
|
||||||
install:
|
install:
|
||||||
|
packages:
|
||||||
- micro
|
- micro
|
||||||
- starship
|
- starship
|
||||||
remove:
|
remove:
|
||||||
|
packages:
|
||||||
- firefox
|
- firefox
|
||||||
- firefox-langpacks
|
- firefox-langpacks
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -310,8 +310,8 @@ mod test {
|
||||||
#[case("test: value", "/test", (6, 5))]
|
#[case("test: value", "/test", (6, 5))]
|
||||||
#[case(RECIPE, "/description", (109, 29))]
|
#[case(RECIPE, "/description", (109, 29))]
|
||||||
#[case(RECIPE, "/image-version", (199, 6))]
|
#[case(RECIPE, "/image-version", (199, 6))]
|
||||||
#[case(RECIPE, "/modules/4/install", (605, 24))]
|
#[case(RECIPE, "/modules/4/install", (621, 36))]
|
||||||
#[case(RECIPE, "/modules/8/snippets", (931, 57))]
|
#[case(RECIPE, "/modules/8/snippets", (979, 57))]
|
||||||
#[case(RECIPE_INVALID, "/image-version", (182, 11))]
|
#[case(RECIPE_INVALID, "/image-version", (182, 11))]
|
||||||
#[case(RECIPE_INVALID_STAGE, "/stages/0/from", (262, 8))]
|
#[case(RECIPE_INVALID_STAGE, "/stages/0/from", (262, 8))]
|
||||||
#[case(RECIPE_INVALID_MODULE, "/modules/7/containerfiles", (807, 8))]
|
#[case(RECIPE_INVALID_MODULE, "/modules/7/containerfiles", (807, 8))]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue