Skip to content

Commit

Permalink
move fixture publishing to its own gha
Browse files Browse the repository at this point in the history
Signed-off-by: Per Goncalves da Silva <[email protected]>
  • Loading branch information
Per Goncalves da Silva committed Jun 11, 2024
1 parent ca39bec commit e21f2d7
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 30 deletions.
31 changes: 1 addition & 30 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,33 +147,4 @@ jobs:
if: ${{ needs.e2e.result == 'failure' }}
run: |
echo 'Failure: at least one e2e matrix job has failed'
exit 1
publish-fixture-images:
if: ${{ needs.build.outputs.UPDATE_FIXTURES == 'true' && success() }}
needs: e2e-tests
runs-on: ubuntu-latest
steps:
# checkout code and setup go
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: Docker Login
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: docker-images
path: images/
- name: Load Docker images
run: |
for image in images/*.tar.gz; do
docker load -i $image
done
- name: Push fixture images
run: scripts/e2e_test_fixtures.sh --push --skip-build
exit 1
33 changes: 33 additions & 0 deletions .github/workflows/fixtures.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: fixtures
on:
push:
branches:
- master
jobs:
rebuild:
if: ${{ needs.build.outputs.UPDATE_FIXTURES == 'true' && success() }}
needs: e2e-tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: Docker Login
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: docker-images
path: images/
- name: Load Docker images
run: |
for image in images/*.tar.gz; do
docker load -i $image
done
- name: Push fixture images
run: scripts/e2e_test_fixtures.sh --push --skip-build

0 comments on commit e21f2d7

Please sign in to comment.