-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (40 loc) · 1.11 KB
/
build-guest.yml
File metadata and controls
45 lines (40 loc) · 1.11 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
name: Build Guest Images
on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to create and release (e.g. v0.5.9). Leave empty to build only.'
required: false
default: ''
type: string
jobs:
build:
runs-on: yocto-builder
timeout-minutes: 480
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Reproducible build
run: cd repro-build && ./repro-build.sh -n
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: guest-images
path: |
repro-build/dist/*.tar.gz
repro-build/dist/reproduce.sh
retention-days: 30
- name: Create tag and release
if: inputs.tag != ''
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ inputs.tag }}
run: |
git tag "$TAG"
git push origin "$TAG"
gh release create "$TAG" \
repro-build/dist/*.tar.gz \
repro-build/dist/reproduce.sh \
--title "$TAG" --generate-notes