forked from mendersoftware/mender-convert
-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (53 loc) · 1.64 KB
/
convert_images.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
name: build boards
on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '6 2 * * 6'
env:
BUILDDIR: gh
ARTIFACT_PATH: /home/mender/artifacts
MENDER_ARTIFACT_NAME: gha_autobuild
jobs:
prepare:
runs-on: [self-hosted, linux, x64]
steps:
- name: Clean up
run: rm -fR $BUILDDIR
- uses: actions/checkout@v4
- name: make artifact directory
run: mkdir -p $ARTIFACT_PATH
fetch_images:
runs-on: [self-hosted, linux, x64]
needs: [prepare]
steps:
- name: download_required
env:
GOLDEN_IMAGE_DIR: ${{ vars.GOLDEN_IMAGE_DIR }}
run: ./ci/prepare_images.py
setup_work:
runs-on: [self-hosted, linux, x64]
needs: [fetch_images]
steps:
- name: make image directory
run: mkdir -p input/image
- name: copy images
env:
GOLDEN_IMAGE_DIR: ${{ vars.GOLDEN_IMAGE_DIR }}
run: cp -v ${{ vars.GOLDEN_IMAGE_DIR }}/* input/image
convert:
runs-on: [self-hosted, linux, x64]
needs: [setup_work]
strategy:
fail-fast: false
matrix:
include:
- config: raspberrypi3_config
image: 2024-07-04-raspios-bookworm-armhf-lite.img
- config: raspberrypi4_config
image: 2024-07-04-raspios-bookworm-armhf-lite.img
steps:
- name: convert
run: ./docker-mender-convert --disk-image input/image/${{ matrix.image }} --config configs/${{ matrix.config }} --config configs/mender_convert_demo_config
- name: collect artifacts
run: cp -fvR output $ARTIFACT_PATH/${{ matrix.config }}