forked from kubernetes-sigs/cluster-api-provider-openstack
-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (42 loc) · 1.33 KB
/
osimages.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
name: E2E node images
on:
pull_request:
branches: [main]
paths-ignore:
- '**/*.md'
- 'docs/**'
- '.gitignore'
- 'hack/*.sh'
- 'LICENSE'
- 'SECURITY_CONTACTS'
- 'OWNERS'
permissions: {}
jobs:
build:
name: Build and upload node images
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
repository: kubernetes-sigs/image-builder
path: image-builder
ref: v0.1.22
- name: Patch image-builder Dockerfile with root user
run: git apply {{ github.workspace }}/cluster-api-provider-openstack/osimages/image-builder.patch
working-directory: "{{ github.workspace }}/image-builder"
- name: Build image-builder image with root user
run:
working-directory: "{{ github.workspace }}/image-builder"
- name: Build images
env:
OSIMAGE_BUILDER: gcr.io/scl-image-builder/cluster-node-image-builder-amd64:dev
run: make -C osimages -j2 ACCELERATOR=kvm \
osimage-flatcar-1.27.2 \
osimage-flatcar-1.28.2 \
osimage-ubuntu-2204-1.28.2 \
osimage-ubuntu-2204-1.27.2
- name: Upload images
run: make -C osimages osimage-upload