-
Notifications
You must be signed in to change notification settings - Fork 7
74 lines (68 loc) · 2.55 KB
/
Copy pathimage-boot-smoke.yml
File metadata and controls
74 lines (68 loc) · 2.55 KB
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
name: Image boot smoke
on:
workflow_dispatch:
inputs:
image_release_repo:
description: GitHub repository that publishes the image release
required: false
default: airplanes-live/image
image_contract:
description: Expected image contract: new or legacy
required: false
default: new
image_channel:
description: Image release channel to select when no explicit regex is provided
required: false
default: stable
image_arch:
description: Image architecture to select when no explicit regex is provided
required: false
default: arm64
image_asset_regex:
description: Optional regex used to select the release asset
required: false
default: ''
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
image-boot-smoke:
name: latest image boot + update + reboot
runs-on: ubuntu-24.04
timeout-minutes: 90
steps:
- name: Checkout feed
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
ref: ${{ github.event_name == 'schedule' && 'dev' || github.ref }}
- name: Install QEMU smoke dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
ca-certificates \
curl \
git \
jq \
parted \
p7zip-full \
qemu-system-arm \
qemu-user-static \
rsync \
file \
unzip \
xz-utils
- name: Run booted image smoke
env:
GITHUB_TOKEN: ${{ github.token }}
AIRPLANES_IMAGE_RELEASE_REPO: ${{ github.event.inputs.image_release_repo || 'airplanes-live/image' }}
AIRPLANES_IMAGE_CONTRACT: ${{ github.event.inputs.image_contract || 'new' }}
AIRPLANES_IMAGE_CHANNEL: ${{ github.event.inputs.image_channel || 'stable' }}
AIRPLANES_IMAGE_ARCH: ${{ github.event.inputs.image_arch || 'arm64' }}
AIRPLANES_IMAGE_ASSET_REGEX: ${{ github.event.inputs.image_asset_regex || '' }}
AIRPLANES_BOOT_SMOKE_WORK_DIR: ${{ runner.temp }}/airplanes-image-boot-smoke
run: |
sudo --preserve-env=GITHUB_TOKEN,AIRPLANES_IMAGE_RELEASE_REPO,AIRPLANES_IMAGE_CONTRACT,AIRPLANES_IMAGE_CHANNEL,AIRPLANES_IMAGE_ARCH,AIRPLANES_IMAGE_ASSET_REGEX,AIRPLANES_BOOT_SMOKE_WORK_DIR \
bash test/image-boot-smoke.sh