-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (58 loc) · 1.98 KB
/
dispatch-images-build.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
name: Dispatch Images Build, scarthgap
# This workflow represents a specific configuration for a
# single MACHINE as a specific design goal. It utilizes a
# reusable workflow found at distro-core/distro-manifest.
# Requires
# secrets.AWS_ACCESS_KEY_ID Callable Workflow, S3 Access Key
# secrets.AWS_SECRET_ACCESS_KEY Callable Workflow, S3 Secret Key
# secrets.AWS_ENDPOINT_URL Callable Workflow, S3 Endpoint Hostname
# Self hosted runners have the prerequsite dependency to
# install the host tools dependencies before workflow use.
on:
workflow_dispatch:
inputs:
DISTROS:
required: true
type: choice
default: distro-core
options:
- distro-core
- distro-core-gui
TARGETS:
required: true
type: string
default: distro-image
permissions:
actions: write
contents: write
defaults:
run:
shell: bash
jobs:
# runner-name selects a self-hosted runner which has a label that
# matches its name. The setup has to be performed before the
# workflow instance is used.
runner-name:
runs-on: self-hosted
outputs:
established-runner: ${{ runner.name }}
steps:
- run: echo "selected runner = ${{ runner.name }}"
# the reusable workflow is called with parameters for the specifics
# of the process.
execute:
needs: runner-name
uses: distro-core/distro-manifest/.github/workflows/images-build.yml@main
with:
established-runner: ${{ needs.runner-name.outputs.established-runner }}
DISTRO_CODENAME: scarthgap
DISTROS: ${{ inputs.DISTROS }}
MACHINES: com-cexpress-sl
TARGETS: ${{ inputs.TARGETS }}
TARGET_FLAGS:
MANIFEST_URI: https://github.com/distro-core/distro-manifest.git
MANIFEST_BRANCH: main
secrets:
AWS_ENDPOINT_URL: ${{ secrets.AWS_ENDPOINT_URL }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}