Add choice option to create community image for BPI-R4

This commit is contained in:
Daniel Pawlik
2024-10-06 16:32:40 +02:00
parent e97086c653
commit 850782323d
2 changed files with 19 additions and 6 deletions

View File

@@ -6,13 +6,26 @@ on:
workflow_dispatch:
inputs:
DEVICE_CONFIG:
description: "Device configuration selection (default: non-poe)"
required: false
default: ""
description: "Device configuration selection: <none> or poe (default: non-poe)"
required: true
type: choice
default: 'non-poe'
options:
- poe
- non-poe
RMADRAD_VERSION:
description: "Should it use branch with rmadrad patch: true or false (default: false)"
type: choice
required: true
default: 'false'
options:
- true
- false
env:
REMOTE_REPOSITORY: danpawlik/openwrt
REMOTE_BRANCH: v14-luci-eht-rmadrad
REMOTE_BRANCH: v14-luci-eht${{ inputs.RMADRAD_VERSION == true && '-rmadrad' || '' }}
RELEASE_PREFIX: Mediatek_mt7988a_bpi-r4_be14_eht
DEVICE_CONFIG: ${{ inputs.DEVICE_CONFIG == 'poe' && 'configs/mediatek/mt7988a/bpi-r4-poe' || 'configs/mediatek/mt7988a/bpi-r4' }}
ROLE_CONFIG: configs/common/community
@@ -123,7 +136,7 @@ jobs:
name: OpenWRT BPI-R4 ${{ env.DEVICE_CONFIG }} + BE14 + luci BE - ${{ env.REMOTE_BRANCH }} - ${{ env.RELEASE_DATE }}
body: |
Updated prebuilt images for ${{ env.RELEASE_DATE }} with BE14, luci BE, basic 5G modem packages, that was
expected by the community members.
expected by the community members. ${{ inputs.RMADRAD_VERSION == true && 'That build contains Rmadrad patch' || '' }}
Build Commit: ${{ needs.check_commits.outputs.latest_commit_sha }}
- name: Clean up old releases

View File

@@ -6,7 +6,7 @@ on:
env:
REMOTE_REPOSITORY: danpawlik/openwrt
REMOTE_BRANCH: v14-luci-eht-rmadrad
REMOTE_BRANCH: v14-luci-eht
RELEASE_PREFIX: Mediatek_mt7988a_bpi-r4_be14_all_packages_eht
jobs: