Build all images #12
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: Build all images | |
on: | |
create: | |
tags: | |
- '*' | |
workflow_dispatch: | |
inputs: | |
tag_name: | |
description: 'Tag name' | |
required: true | |
default: 'v1.0.0' | |
type: string | |
jobs: | |
Build-all-images: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check tag | |
id: check_tag | |
run: | | |
if [[ ${{ github.event_name }} == 'workflow_dispatch' ]]; then | |
echo "TAG_NAME=${{ github.event.inputs.tag_name }}" >> $GITHUB_ENV | |
elif [[ ${{ github.event_name }} == 'create' ]]; then | |
echo "TAG_NAME=${{ github.ref }}" >> $GITHUB_ENV | |
fi | |
- name: Creat release | |
id: create_release | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ env.TAG_NAME }} | |
draft: false | |
- name: build raspberrypi image | |
uses: benc-uk/[email protected] | |
with: | |
workflow: Build pi-gen image | |
token: ${{ secrets.GITHUB_TOKEN }} | |
inputs: >- | |
{ | |
"dev_name": "raspberrypi", | |
"pi-gen-version": "arm64", | |
"enable-ssh": "1", | |
"stage-list": "stage0 stage1 stage2 stage3 stage4", | |
"wpa-country" : "CN", | |
"keyboard-keymap": "us", | |
"disable-first-boot-user-rename": "0", | |
"username": "pi", | |
"password": "raspberry", | |
"release_url": "${{ steps.create_release.outputs.upload_url }}" | |
} | |
- name: build reComputer-R100x image | |
uses: benc-uk/[email protected] | |
with: | |
workflow: Build pi-gen image | |
token: ${{ secrets.GITHUB_TOKEN }} | |
inputs: >- | |
{ | |
"dev_name": "reComputer-R100x", | |
"pi-gen-version": "arm64", | |
"enable-ssh": "1", | |
"stage-list": "stage0 stage1 stage2 stage3 stage4 stage4a", | |
"wpa-country" : "CN", | |
"keyboard-keymap": "us", | |
"disable-first-boot-user-rename": "1", | |
"username": "recomputer", | |
"password": "12345678", | |
"release_url": "${{ steps.create_release.outputs.upload_url }}" | |
} | |
- name: build reComputer-R110x image | |
uses: benc-uk/[email protected] | |
with: | |
workflow: Build pi-gen image | |
token: ${{ secrets.GITHUB_TOKEN }} | |
inputs: >- | |
{ | |
"dev_name": "reComputer-R110x", | |
"pi-gen-version": "arm64", | |
"enable-ssh": "1", | |
"stage-list": "stage0 stage1 stage2 stage3 stage4 stage4a", | |
"wpa-country" : "CN", | |
"keyboard-keymap": "us", | |
"disable-first-boot-user-rename": "1", | |
"username": "recomputer", | |
"password": "12345678", | |
"release_url": "${{ steps.create_release.outputs.upload_url }}" | |
} | |
- name: build reComputer-AI-box image | |
uses: benc-uk/[email protected] | |
with: | |
workflow: Build pi-gen image | |
token: ${{ secrets.GITHUB_TOKEN }} | |
inputs: >- | |
{ | |
"dev_name": "reComputer-AI-box", | |
"pi-gen-version": "arm64", | |
"enable-ssh": "1", | |
"stage-list": "stage0 stage1 stage2 stage3 stage4 stage4a", | |
"wpa-country" : "CN", | |
"keyboard-keymap": "us", | |
"disable-first-boot-user-rename": "1", | |
"username": "recomputer", | |
"password": "12345678", | |
"release_url": "${{ steps.create_release.outputs.upload_url }}" | |
} | |
- name: build reTerminal image | |
uses: benc-uk/[email protected] | |
with: | |
workflow: Build pi-gen image | |
token: ${{ secrets.GITHUB_TOKEN }} | |
inputs: >- | |
{ | |
"dev_name": "reTerminal", | |
"pi-gen-version": "arm64", | |
"enable-ssh": "1", | |
"stage-list": "stage0 stage1 stage2 stage3 stage4 stage4a", | |
"wpa-country" : "CN", | |
"keyboard-keymap": "us", | |
"disable-first-boot-user-rename": "0", | |
"username": "pi", | |
"password": "raspberry", | |
"release_url": "${{ steps.create_release.outputs.upload_url }}" | |
} | |
- name: build reTerminal-DM image | |
uses: benc-uk/[email protected] | |
with: | |
workflow: Build pi-gen image | |
token: ${{ secrets.GITHUB_TOKEN }} | |
inputs: >- | |
{ | |
"dev_name": "reTerminal-DM", | |
"pi-gen-version": "arm64", | |
"enable-ssh": "1", | |
"stage-list": "stage0 stage1 stage2 stage3 stage4 stage4a", | |
"wpa-country" : "CN", | |
"keyboard-keymap": "us", | |
"disable-first-boot-user-rename": "1", | |
"username": "pi", | |
"password": "raspberry", | |
"release_url": "${{ steps.create_release.outputs.upload_url }}" | |
} | |