Images Fetch (scarthgap) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Images Fetch | |
run-name: Images Fetch (${{ inputs.DISTRO_CODENAME }}) | |
# 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 S3 Access Key | |
# secrets.AWS_SECRET_ACCESS_KEY S3 Secret Key | |
# vars.AWS_ENDPOINT_URL S3 Endpoint Hostname | |
# Self hosted runners have the prerequsite dependency to install the | |
# host tools dependencies before pipeline use. | |
# .repo/manifests/scripts/setup-host-deps.sh | |
on: | |
workflow_dispatch: | |
inputs: | |
DISTRO_CODENAME: | |
required: true | |
type: choice | |
default: scarthgap | |
options: | |
- kirkstone | |
- scarthgap | |
DISTROS: | |
required: true | |
type: choice | |
default: scarthgap | |
options: | |
- distro-core | |
- distro-core-gui | |
- distro-musl | |
- distro-musl-gui | |
TARGETS: | |
required: true | |
type: string | |
default: distro-image | |
permissions: | |
actions: write | |
contents: write | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
get-runner-name: | |
runs-on: self-hosted | |
outputs: | |
established-runner: ${{ runner.name }} | |
steps: | |
- uses: liskin/[email protected] | |
- uses: n1hility/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
workflow: images-fetch.yml | |
- run: echo "selected runner = ${{ runner.name }}" | |
# --- | |
fetch-distro: | |
if: true | |
needs: get-runner-name | |
uses: distro-core/distro-manifest/.github/workflows/images-fetch.yml@main | |
with: | |
established-runner: ${{ needs.get-runner-name.outputs.established-runner }} | |
DISTRO_CODENAME: ${{ inputs.DISTRO_CODENAME }} | |
DISTROS: ${{ inputs.DISTROS }} | |
MACHINES: sbc-pine64-star64 | |
TARGETS: ${{ inputs.TARGETS }} | |
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 }} | |
build-distro: | |
if: false | |
needs: [ get-runner-name, fetch-distro ] | |
uses: distro-core/distro-manifest/.github/workflows/images-build.yml@main | |
with: | |
established-runner: ${{ needs.get-runner-name.outputs.established-runner }} | |
DISTRO_CODENAME: ${{ inputs.DISTRO_CODENAME }} | |
DISTROS: ${{ inputs.DISTROS }} | |
MACHINES: sbc-pine64-star64 | |
TARGETS: ${{ inputs.TARGETS }} | |
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 }} | |
# --- |