Skip to content

Commit 09fd438

Browse files
author
Per Goncalves da Silva
committed
move fixture publishing to its own gha
Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent 751b586 commit 09fd438

File tree

2 files changed

+34
-30
lines changed

2 files changed

+34
-30
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -147,33 +147,4 @@ jobs:
147147
if: ${{ needs.e2e.result == 'failure' }}
148148
run: |
149149
echo 'Failure: at least one e2e matrix job has failed'
150-
exit 1
151-
152-
publish-fixture-images:
153-
if: ${{ needs.build.outputs.UPDATE_FIXTURES == 'true' && success() }}
154-
needs: e2e-tests
155-
runs-on: ubuntu-latest
156-
steps:
157-
# checkout code and setup go
158-
- uses: actions/checkout@v4
159-
- uses: actions/setup-go@v5
160-
with:
161-
go-version-file: "go.mod"
162-
- name: Docker Login
163-
uses: docker/login-action@v3
164-
with:
165-
registry: quay.io
166-
username: ${{ secrets.QUAY_USERNAME }}
167-
password: ${{ secrets.QUAY_PASSWORD }}
168-
- name: Download build artifacts
169-
uses: actions/download-artifact@v4
170-
with:
171-
name: docker-images
172-
path: images/
173-
- name: Load Docker images
174-
run: |
175-
for image in images/*.tar.gz; do
176-
docker load -i $image
177-
done
178-
- name: Push fixture images
179-
run: scripts/e2e_test_fixtures.sh --push --skip-build
150+
exit 1

.github/workflows/fixtures.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: fixtures
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
rebuild:
8+
if: ${{ needs.build.outputs.UPDATE_FIXTURES == 'true' && success() }}
9+
needs: e2e-tests
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-go@v5
14+
with:
15+
go-version-file: "go.mod"
16+
- name: Docker Login
17+
uses: docker/login-action@v3
18+
with:
19+
registry: quay.io
20+
username: ${{ secrets.QUAY_USERNAME }}
21+
password: ${{ secrets.QUAY_PASSWORD }}
22+
- name: Download build artifacts
23+
uses: actions/download-artifact@v4
24+
with:
25+
name: docker-images
26+
path: images/
27+
- name: Load Docker images
28+
run: |
29+
for image in images/*.tar.gz; do
30+
docker load -i $image
31+
done
32+
- name: Push fixture images
33+
run: scripts/e2e_test_fixtures.sh --push --skip-build

0 commit comments

Comments
 (0)