Skip to content

Commit

Permalink
Store logs on earthly (#2880)
Browse files Browse the repository at this point in the history
  • Loading branch information
Itxaka authored Sep 24, 2024
1 parent 8017e04 commit 0ade99b
Show file tree
Hide file tree
Showing 19 changed files with 66 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/image-arm-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ concurrency:
cancel-in-progress: true
env:
FORCE_COLOR: 1

EARTHLY_TOKEN: ${{ secrets.EARTHLY_TOKEN }}
jobs:
opensuse:
uses: ./.github/workflows/reusable-docker-arm-build.yaml
secrets: inherit
permissions:
id-token: write # OIDC support
contents: write
Expand All @@ -39,6 +40,7 @@ jobs:
worker: ARM64
alpine:
uses: ./.github/workflows/reusable-docker-arm-build.yaml
secrets: inherit
permissions:
id-token: write # OIDC support
contents: write
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/image-arm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ concurrency:
cancel-in-progress: true
env:
FORCE_COLOR: 1

jobs:
get-core-matrix:
runs-on: ubuntu-latest
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/image-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ concurrency:
cancel-in-progress: true
env:
FORCE_COLOR: 1
EARTHLY_TOKEN: ${{ secrets.EARTHLY_TOKEN }}
jobs:
core-ubuntu-22-lts:
uses: ./.github/workflows/reusable-build-flavor.yaml
secrets: inherit
permissions:
contents: write
security-events: write
Expand All @@ -39,6 +41,7 @@ jobs:

core-ubuntu-24-lts:
uses: ./.github/workflows/reusable-build-flavor.yaml
secrets: inherit
permissions:
contents: write
security-events: write
Expand All @@ -65,6 +68,7 @@ jobs:

core-alpine:
uses: ./.github/workflows/reusable-build-flavor.yaml
secrets: inherit
permissions:
contents: write
security-events: write
Expand All @@ -91,6 +95,7 @@ jobs:

standard:
uses: ./.github/workflows/reusable-build-provider.yaml
secrets: inherit
permissions:
id-token: write # OIDC support
contents: write
Expand All @@ -117,6 +122,7 @@ jobs:

install:
uses: ./.github/workflows/reusable-install-test.yaml
secrets: inherit
with:
flavor: ubuntu
flavor_release: "24.04"
Expand All @@ -126,6 +132,7 @@ jobs:

install-secureboot:
uses: ./.github/workflows/reusable-install-test.yaml
secrets: inherit
with:
flavor: ubuntu
flavor_release: "24.04"
Expand All @@ -135,6 +142,7 @@ jobs:

install-alpine:
uses: ./.github/workflows/reusable-install-test.yaml
secrets: inherit
with:
flavor: alpine
flavor_release: "3.19"
Expand All @@ -143,6 +151,7 @@ jobs:

zfs:
uses: ./.github/workflows/reusable-zfs-test.yaml
secrets: inherit
with:
flavor: ubuntu
flavor_release: "22.04"
Expand All @@ -151,6 +160,7 @@ jobs:

acceptance:
uses: ./.github/workflows/reusable-qemu-acceptance-test.yaml
secrets: inherit
with:
flavor: ubuntu
flavor_release: "24.04"
Expand All @@ -159,6 +169,7 @@ jobs:

acceptance-alpine:
uses: ./.github/workflows/reusable-qemu-acceptance-test.yaml
secrets: inherit
with:
flavor: alpine
flavor_release: "3.19"
Expand All @@ -167,6 +178,7 @@ jobs:

bundles:
uses: ./.github/workflows/reusable-qemu-bundles-test.yaml
secrets: inherit
with:
flavor: ubuntu
flavor_release: "24.04"
Expand All @@ -175,6 +187,7 @@ jobs:

reset:
uses: ./.github/workflows/reusable-qemu-reset-test.yaml
secrets: inherit
with:
flavor: ubuntu
flavor_release: "24.04"
Expand All @@ -183,6 +196,7 @@ jobs:

reset-alpine:
uses: ./.github/workflows/reusable-qemu-reset-test.yaml
secrets: inherit
with:
flavor: alpine
flavor_release: "3.19"
Expand All @@ -191,6 +205,7 @@ jobs:

netboot:
uses: ./.github/workflows/reusable-qemu-netboot-test.yaml
secrets: inherit
with:
flavor: ubuntu
flavor_release: "24.04"
Expand All @@ -203,6 +218,7 @@ jobs:

netboot-alpine:
uses: ./.github/workflows/reusable-qemu-netboot-test.yaml
secrets: inherit
with:
flavor: alpine
flavor_release: "3.19"
Expand All @@ -215,6 +231,7 @@ jobs:

upgrade:
uses: ./.github/workflows/reusable-upgrade-with-cli-test.yaml
secrets: inherit
with:
flavor: ubuntu
flavor_release: "24.04"
Expand All @@ -223,6 +240,7 @@ jobs:

upgrade-alpine:
uses: ./.github/workflows/reusable-upgrade-with-cli-test.yaml
secrets: inherit
with:
flavor: alpine
flavor_release: "3.19"
Expand All @@ -231,6 +249,7 @@ jobs:

upgrade-latest:
uses: ./.github/workflows/reusable-upgrade-latest-test.yaml
secrets: inherit
with:
flavor: ubuntu
flavor_release: "24.04"
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ concurrency:
env:
FORCE_COLOR: 1
jobs:

get-core-matrix:
runs-on: ubuntu-latest
outputs:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release-arm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
tags:
- 'v*'
env:
FORCE_COLOR: 1
EARTHLY_TOKEN: ${{ secrets.EARTHLY_TOKEN }}
permissions: read-all
jobs:
get-core-matrix:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ on:
push:
tags:
- v*

env:
FORCE_COLOR: 1
EARTHLY_TOKEN: ${{ secrets.EARTHLY_TOKEN }}
permissions: read-all
jobs:
get-core-matrix:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/reusable-build-flavor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ jobs:
run: |
sudo iptables -I INPUT -s 169.254.169.254 -j DROP
sudo iptables -I OUTPUT -d 169.254.169.254 -j DROP
- name: Login to earthly
run: |
earthly account login --token ${{ secrets.EARTHLY_TOKEN }} && earthly org select Kairos
- name: Build PR 🔧
if: ${{ github.event_name == 'pull_request' }}
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/reusable-build-provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ jobs:
run: |
sudo iptables -I INPUT -s 169.254.169.254 -j DROP
sudo iptables -I OUTPUT -d 169.254.169.254 -j DROP
- name: Login to earthly
run: |
earthly account login --token ${{ secrets.EARTHLY_TOKEN }} && earthly org select Kairos
- name: Build PR 🔧
if: ${{ github.event_name == 'pull_request' }}
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/reusable-docker-arm-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ on:
base_image:
required: true
type: string
env:
FORCE_COLOR: 1

permissions: read-all
jobs:
build:
Expand Down Expand Up @@ -129,6 +128,9 @@ jobs:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
run: |
echo "IMG_COMPRESSION=xz" >> $GITHUB_ENV
- name: Login to earthly
run: |
earthly account login --token ${{ secrets.EARTHLY_TOKEN }} && earthly org select Kairos
- name: Build 🔧
run: |
earthly -P +all-arm \
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/reusable-image-and-iso-arm-generic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ jobs:
run: |
sudo iptables -I INPUT -s 169.254.169.254 -j DROP
sudo iptables -I OUTPUT -d 169.254.169.254 -j DROP
- name: Login to earthly
run: |
earthly account login --token ${{ secrets.EARTHLY_TOKEN }} && earthly org select Kairos
- name: Build iso 🔧
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/reusable-qemu-acceptance-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,8 @@ jobs:
run: |
sudo iptables -I INPUT -s 169.254.169.254 -j DROP
sudo iptables -I OUTPUT -d 169.254.169.254 -j DROP
- name: Login to earthly
run: |
earthly account login --token ${{ secrets.EARTHLY_TOKEN }} && earthly org select Kairos
- run: |
earthly +run-qemu-datasource-tests --PREBUILT_ISO=$(ls *${{ inputs.flavor }}*.iso) --FLAVOR=${{ inputs.flavor }} --SSH_PORT=${{ inputs.port }}
3 changes: 3 additions & 0 deletions .github/workflows/reusable-qemu-bundles-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
run: |
sudo iptables -I INPUT -s 169.254.169.254 -j DROP
sudo iptables -I OUTPUT -d 169.254.169.254 -j DROP
- name: Login to earthly
run: |
earthly account login --token ${{ secrets.EARTHLY_TOKEN }} && earthly org select Kairos
- env:
KVM: true
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/reusable-qemu-netboot-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ jobs:
run: |
sudo iptables -I INPUT -s 169.254.169.254 -j DROP
sudo iptables -I OUTPUT -d 169.254.169.254 -j DROP
- name: Login to earthly
run: |
earthly account login --token ${{ secrets.EARTHLY_TOKEN }} && earthly org select Kairos
- run: |
earthly -P +run-qemu-netboot-test \
--TEST_SUITE=netboot-test \
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/reusable-qemu-reset-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
run: |
sudo iptables -I INPUT -s 169.254.169.254 -j DROP
sudo iptables -I OUTPUT -d 169.254.169.254 -j DROP
- name: Login to earthly
run: |
earthly account login --token ${{ secrets.EARTHLY_TOKEN }} && earthly org select Kairos
- env:
KVM: true
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/reusable-uki-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ jobs:
with:
repository: quay.io/kairos/packages
packages: utils/earthly
- name: Login to earthly
run: |
earthly account login --token ${{ secrets.EARTHLY_TOKEN }} && earthly org select Kairos
- name: Build base image 🔧
run: | # known flavors to work with uki+encryption: fedora >= 38, ubuntu >= 23.10, anything with systemd 253
earthly +base-image \
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/reusable-upgrade-latest-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ jobs:
run: |
sudo iptables -I INPUT -s 169.254.169.254 -j DROP
sudo iptables -I OUTPUT -d 169.254.169.254 -j DROP
- name: Login to earthly
run: |
earthly account login --token ${{ secrets.EARTHLY_TOKEN }} && earthly org select Kairos
- run: |
# release-downloader globing matches more than one iso. Make sure
# we use the right one.
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/reusable-upgrade-with-cli-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ jobs:
run: |
sudo iptables -I INPUT -s 169.254.169.254 -j DROP
sudo iptables -I OUTPUT -d 169.254.169.254 -j DROP
- name: Login to earthly
run: |
earthly account login --token ${{ secrets.EARTHLY_TOKEN }} && earthly org select Kairos
- run: |
earthly +run-qemu-test --PREBUILT_ISO=$(ls *${{ inputs.flavor }}*.iso) \
--FLAVOR=${{ inputs.flavor }} \
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/reusable-zfs-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@ jobs:
run: |
sudo iptables -I INPUT -s 169.254.169.254 -j DROP
sudo iptables -I OUTPUT -d 169.254.169.254 -j DROP
- name: Login to earthly
run: |
earthly account login --token ${{ secrets.EARTHLY_TOKEN }} && earthly org select Kairos
- run: |
earthly +run-qemu-test --PREBUILT_ISO=$(ls *${{ inputs.flavor }}*.iso) --TEST_SUITE=zfs --FLAVOR=${{ inputs.flavor }}
1 change: 1 addition & 0 deletions .github/workflows/uki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ concurrency:
cancel-in-progress: true
env:
FORCE_COLOR: 1
EARTHLY_TOKEN: ${{ secrets.EARTHLY_TOKEN }}
jobs:
test-uki:
strategy:
Expand Down

0 comments on commit 0ade99b

Please sign in to comment.