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:
parent
fe671cdd1a
commit
46700ab794
13 changed files with 143 additions and 73 deletions
8
.github/workflows/build-pr.yml
vendored
8
.github/workflows/build-pr.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue