chore: Update builds to use different satellites and have integration tests on their own job

This commit is contained in:
Gerald Pinder 2024-03-06 15:08:03 -05:00
parent e1a0e3c6a4
commit 3a2353923d
3 changed files with 58 additions and 18 deletions

View file

@ -17,7 +17,7 @@ jobs:
- uses: earthly/actions-setup@v1
with:
version: v0.8.3
version: v0.8.4
- name: Earthly login
env:
@ -26,7 +26,7 @@ jobs:
run: |
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
earthly org s blue-build
earthly sat s blue-build
earthly sat s blue-build-pr
- uses: actions/checkout@v4
with:
@ -35,11 +35,33 @@ jobs:
- name: Run build
run: earthly --ci +build
- name: Switch to integration-tests satellite
integration-tests:
permissions:
packages: write
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: ublue-os/remove-unwanted-software@v6
- uses: earthly/actions-setup@v1
with:
version: v0.8.4
- name: Earthly login
env:
EARTHLY_SAT_TOKEN: ${{ secrets.EARTHLY_SAT_TOKEN }}
if: env.EARTHLY_SAT_TOKEN != null
run: earthly sat s blue-build-integration-tests
run: |
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
earthly org s blue-build
earthly sat s blue-build-integration-tests
# Setup repo and add caching
- uses: actions/checkout@v4
with:
ref: main
- name: Run integration tests
if: github.repository == 'blue-build/cli'
@ -60,7 +82,7 @@ jobs:
- uses: sigstore/cosign-installer@v3.3.0
- uses: earthly/actions-setup@v1
with:
version: v0.8.3
version: v0.8.4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

View file

@ -22,7 +22,7 @@ jobs:
- uses: earthly/actions-setup@v1
with:
version: v0.8.3
version: v0.8.4
- name: Earthly login
env:
@ -31,7 +31,7 @@ jobs:
run: |
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
earthly org s blue-build
earthly sat s blue-build
earthly sat s blue-build-main
# Setup repo and add caching
- uses: actions/checkout@v4
@ -49,11 +49,33 @@ jobs:
if: github.repository == 'blue-build/cli'
run: earthly --push --ci +build
- name: Switch to integration-tests satellite
integration-tests:
permissions:
packages: write
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: ublue-os/remove-unwanted-software@v6
- uses: earthly/actions-setup@v1
with:
version: v0.8.4
- name: Earthly login
env:
EARTHLY_SAT_TOKEN: ${{ secrets.EARTHLY_SAT_TOKEN }}
if: env.EARTHLY_SAT_TOKEN != null
run: earthly sat s blue-build-integration-tests
run: |
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
earthly org s blue-build
earthly sat s blue-build-integration-tests
# Setup repo and add caching
- uses: actions/checkout@v4
with:
ref: main
- name: Run integration tests
if: github.repository == 'blue-build/cli'
@ -74,7 +96,7 @@ jobs:
- uses: sigstore/cosign-installer@v3.3.0
- uses: earthly/actions-setup@v1
with:
version: v0.8.3
version: v0.8.4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3