-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (42 loc) · 1.19 KB
/
fedora.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: fedora
on: [push, pull_request]
jobs:
build-container-image:
runs-on: ubuntu-20.04
name: build-container-image
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build the image
run: docker build -f Dockerfile.fedora -t fedora:local .
- name: Export the image
run: docker save -o fedora-local.tar fedora:local
- name: Upload the image
uses: actions/upload-artifact@v3
with:
name: ci-images
if-no-files-found: error
path: fedora-local.tar
retention-days: 1
e2e:
strategy:
matrix:
include:
- name: e2e-all
script: docker run fedora:local all
- name: e2e-link
script: docker run fedora:local link
name: ${{ matrix.name }}
runs-on: ubuntu-latest
needs: [build-container-image]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download container images
uses: actions/download-artifact@v3
with:
name: ci-images
- name: Load image
run: docker load --input fedora-local.tar
- name: Run test
run: ${{ matrix.script }}