chore: Create base integration test setup (#55)

This will allow us to create a suite of tests for our new features
rather than using my personal image repo
This commit is contained in:
Gerald Pinder 2024-02-09 11:47:59 -05:00 committed by GitHub
parent fe671cdd1a
commit 46700ab794
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 143 additions and 73 deletions

View file

@ -17,18 +17,16 @@ jobs:
version: v0.8.3
- name: Earthly login
env:
EARTHLY_SAT_TOKEN: ${{ secrets.EARTHLY_SAT_TOKEN }}
if: env.EARTHLY_SAT_TOKEN != null
if: github.repository == 'blue-build/cli'
run: |
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
earthly org s blue-build
earthly sat s blue-build-pr
earthly sat s blue-build
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.ref }}
- name: Run build
run: earthly --ci -P +build
run: earthly --ci -P +all

View file

@ -22,6 +22,7 @@ jobs:
version: v0.8.3
- name: Earthly login
if: github.repository == 'blue-build/cli'
run: |
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
earthly org s blue-build
@ -40,4 +41,8 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run build
if: github.repository == 'blue-build/cli'
run: earthly --push --ci -P +all
- name: Run build
if: github.repository != 'blue-build/cli'
run: earthly --ci -P +all