mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
build-sd-images.yml: Make sure, IMG variable doesn't change during builds
This commit is contained in:
parent
c77b0c4560
commit
52508e9c37
11
.github/workflows/build-sd-images.yml
vendored
11
.github/workflows/build-sd-images.yml
vendored
@ -27,14 +27,17 @@ jobs:
|
||||
with:
|
||||
ref: "${{ env.VERSION }}"
|
||||
- name: Build RPI SD Image
|
||||
id: build-rpi
|
||||
run: |
|
||||
set -e
|
||||
IMG="NextCloudPi_RPi_$( date "+%m-%d-%y" ).img"
|
||||
wget -q https://github.com/multiarch/qemu-user-static/releases/latest/download/qemu-aarch64-static -O ./qemu-aarch64-static
|
||||
./build/build-SD-rpi.sh
|
||||
echo "::set-output name=image::${IMG}"
|
||||
- name: Pack RPI Image
|
||||
id: pack-rpi
|
||||
run: |
|
||||
IMG="NextCloudPi_RPi_$( date "+%m-%d-%y" ).img"
|
||||
IMG="${{ steps.build-rpi.outputs.image }}"
|
||||
TAR="$( basename "$IMG" .img ).tar.gz"
|
||||
. ./build/buildlib.sh
|
||||
pack_image "tmp/$IMG" "output/$TAR"
|
||||
@ -72,16 +75,18 @@ jobs:
|
||||
with:
|
||||
ref: "${{ env.VERSION }}"
|
||||
- name: "Build Armbian"
|
||||
id: build-armbian
|
||||
run: |
|
||||
set -x
|
||||
export LIB_TAG=master
|
||||
board_params=(${{ matrix.board}})
|
||||
IMG="NextCloudPi_${board_params[1]}_$( date "+%m-%d-%y" ).img"
|
||||
./build/build-SD-armbian.sh "${board_params[@]}"
|
||||
echo "::set-output name=image::${IMG}"
|
||||
- name: "Pack image"
|
||||
id: pack-armbian
|
||||
run: |
|
||||
board_params=(${{ matrix.board}})
|
||||
IMG="NextCloudPi_${board_params[1]}_$( date "+%m-%d-%y" ).img"
|
||||
IMG="${{ steps.build-armbian.outputs.image }}"
|
||||
TAR="$( basename "$IMG" .img ).tar.gz"
|
||||
|
||||
artifacts=("armbian/output/images/Armbian"*.img)
|
||||
|
||||
@ -18,7 +18,7 @@ NCPCFG=etc/ncp.cfg
|
||||
|
||||
echo -e "\e[1m\n[ Build NCP ${BNAME} ]\e[0m"
|
||||
|
||||
IMG="NextCloudPi_${BNAME}_$( date "+%m-%d-%y" ).img"
|
||||
IMG="${IMG:-NextCloudPi_${BNAME}_$( date "+%m-%d-%y" ).img}"
|
||||
IMG=tmp/"$IMG"
|
||||
TAR=output/"$( basename "$IMG" .img ).tar.bz2"
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ echo -e "\e[1m\n[ Build NCP Raspberry Pi ]\e[0m"
|
||||
URL="https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2022-01-28/2022-01-28-raspios-bullseye-arm64-lite.zip"
|
||||
SIZE=4G # Raspbian image size
|
||||
#CLEAN=0 # Pass this envvar to skip cleaning download cache
|
||||
IMG="NextCloudPi_RPi_$( date "+%m-%d-%y" ).img"
|
||||
IMG="${IMG:-NextCloudPi_RPi_$( date "+%m-%d-%y" ).img}"
|
||||
TAR=output/"$( basename "$IMG" .img ).tar.bz2"
|
||||
|
||||
##############################################################################
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user