-
Notifications
You must be signed in to change notification settings - Fork 545
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move fixture publishing to its own gha
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
Showing
2 changed files
with
34 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |