-
Notifications
You must be signed in to change notification settings - Fork 1
87 lines (78 loc) · 2.21 KB
/
oci.yml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: OCI image push
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
prepare:
runs-on: [self-hosted ]
steps:
- name: Prepare & Setup jobs
run: echo "Will spawn jobs to build, sign & push"
build:
needs: [prepare]
strategy:
matrix:
archconfig: [ x86_64, aarch64 ]
unikernel: [ httpreply ]
hypervisor: [ qemu, fc]
fail-fast: false
uses: ./.github/workflows/build.yml
with:
matrix: ${{ matrix.archconfig }}
unikernel: ${{ matrix.unikernel }}
hypervisor: ${{ matrix.hypervisor }}
secrets:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY}}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
harbor_user: ${{ secrets.HARBOR_USER }}
harbor_secret: ${{ secrets.HARBOR_SECRET }}
buildgeneric:
needs: [prepare]
strategy:
matrix:
archconfig: [ x86_64, aarch64 ]
app: [ httpreply-go ]
fail-fast: false
uses: ./.github/workflows/build-generic.yml
with:
matrix: ${{ matrix.archconfig }}
app: ${{ matrix.app }}
secrets:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY}}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
harbor_user: ${{ secrets.HARBOR_USER }}
harbor_secret: ${{ secrets.HARBOR_SECRET }}
manifestgeneric:
needs: [buildgeneric]
uses: ./.github/workflows/manifest.yml
strategy:
matrix:
unikernel: [ httpreply ]
hypervisor: [ go ]
with:
unikernel: ${{ matrix.unikernel }}
hypervisor: ${{ matrix.hypervisor }}
secrets:
harbor_user: ${{ secrets.HARBOR_USER }}
harbor_secret: ${{ secrets.HARBOR_SECRET }}
manifest:
needs: [build]
uses: ./.github/workflows/manifest.yml
strategy:
matrix:
unikernel: [ httpreply ]
hypervisor: [ qemu, fc]
with:
unikernel: ${{ matrix.unikernel }}
hypervisor: ${{ matrix.hypervisor }}
secrets:
harbor_user: ${{ secrets.HARBOR_USER }}
harbor_secret: ${{ secrets.HARBOR_SECRET }}