mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
release.yml, build-sd-images.yml: Add armbian testimage build
This commit is contained in:
parent
a53f800d02
commit
5f38f64336
18
.github/workflows/build-sd-images.yml
vendored
18
.github/workflows/build-sd-images.yml
vendored
@ -15,6 +15,10 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
default: true
|
default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
|
test_image_url:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
outputs:
|
outputs:
|
||||||
artifact_name:
|
artifact_name:
|
||||||
value: "${{ jobs.build.outputs.artifact_name }}"
|
value: "${{ jobs.build.outputs.artifact_name }}"
|
||||||
@ -63,7 +67,13 @@ jobs:
|
|||||||
# which qemu-aarch64-static
|
# which qemu-aarch64-static
|
||||||
# update-binfmts --display qemu-aarch64
|
# update-binfmts --display qemu-aarch64
|
||||||
# update-binfmts --display qemu-arm
|
# update-binfmts --display qemu-arm
|
||||||
|
- name: "Skip build"
|
||||||
|
if: "${{ inputs.test_image_url != '' }}"
|
||||||
|
run: |
|
||||||
|
echo "artifact_file=NextcloudPi_TestImage_${VERSION//\//_}.img" >> $GITHUB_OUTPUT
|
||||||
|
echo "ARTIFACT_FILE=NextcloudPi_TestImage_${VERSION//\//_}.img" >> $GITHUB_ENV
|
||||||
- name: "Build Armbian"
|
- name: "Build Armbian"
|
||||||
|
if: "${{ inputs.test_image_url == '' }}"
|
||||||
id: build-armbian
|
id: build-armbian
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
@ -103,6 +113,7 @@ jobs:
|
|||||||
name: ${{ github.run_id }}-${{ inputs.board_id }}-logs
|
name: ${{ github.run_id }}-${{ inputs.board_id }}-logs
|
||||||
path: armbian/output
|
path: armbian/output
|
||||||
- name: upload image to artifact store
|
- name: upload image to artifact store
|
||||||
|
if: "${{ inputs.test_image_url == '' }}"
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ github.run_id }}-${{ inputs.board_id }}-image
|
name: ${{ github.run_id }}-${{ inputs.board_id }}-image
|
||||||
@ -135,9 +146,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: "${{ env.VERSION }}"
|
ref: "${{ env.VERSION }}"
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
|
if: "${{ inputs.test_image_url == '' }}"
|
||||||
with:
|
with:
|
||||||
name: ${{ env.ARTIFACT_ID }}
|
name: ${{ env.ARTIFACT_ID }}
|
||||||
path: output
|
path: output
|
||||||
|
- name: Download Test Image
|
||||||
|
if: "${{ inputs.test_image_url != '' }}"
|
||||||
|
run: |
|
||||||
|
set -ex
|
||||||
|
mkdir -p output
|
||||||
|
wget -nv "${{ inputs.test_image_url }}" | pv -i 3 > "output/${ARTIFACT_FILE?}"
|
||||||
- name: Prepare test
|
- name: Prepare test
|
||||||
run: |
|
run: |
|
||||||
set -x
|
set -x
|
||||||
|
|||||||
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
@ -26,6 +26,11 @@ on:
|
|||||||
description: 'Release images to GH'
|
description: 'Release images to GH'
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
|
test_image_url:
|
||||||
|
type: string
|
||||||
|
description: 'URL for test image to test instead of actual armbian builds'
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "v*"
|
- "v*"
|
||||||
@ -68,7 +73,7 @@ jobs:
|
|||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
raspberrypi-5:
|
raspberrypi-5:
|
||||||
if: ${{ inputs.sd-images || ( github.event_name != 'workflow_dispatch' && !startsWith(github.ref_name, 'docker-') ) }}
|
if: ${{ false && inputs.sd-images || ( github.event_name != 'workflow_dispatch' && !startsWith(github.ref_name, 'docker-') ) }}
|
||||||
uses: ./.github/workflows/build-sd-images.yml
|
uses: ./.github/workflows/build-sd-images.yml
|
||||||
with:
|
with:
|
||||||
git_ref: "${{ inputs.git_ref || github.head_ref || github.ref_name }}"
|
git_ref: "${{ inputs.git_ref || github.head_ref || github.ref_name }}"
|
||||||
@ -76,6 +81,16 @@ jobs:
|
|||||||
board_name: RaspberryPi5
|
board_name: RaspberryPi5
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
|
armbian-test-image:
|
||||||
|
if: ${{ inputs.test_image_url != '' || ( github.event_name != 'workflow_dispatch' && !startsWith(github.ref_name, 'docker-') ) }}
|
||||||
|
uses: ./.github/workflows/build-sd-images.yml
|
||||||
|
with:
|
||||||
|
git_ref: "${{ inputs.git_ref || github.head_ref || github.ref_name }}"
|
||||||
|
board_id: testimage
|
||||||
|
board_name: TestImage
|
||||||
|
test_image_url: "${{ inputs.test_image_url }}"
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
# TODO: Fix 32bit armbian images
|
# TODO: Fix 32bit armbian images
|
||||||
odroidxu4:
|
odroidxu4:
|
||||||
# if: ${{ inputs.sd-images || ( github.event_name != 'workflow_dispatch' && !startsWith(github.ref_name, 'docker-') ) }}
|
# if: ${{ inputs.sd-images || ( github.event_name != 'workflow_dispatch' && !startsWith(github.ref_name, 'docker-') ) }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user