diff options
author | thecalcaholic <6317548+theCalcaholic@users.noreply.github.com> | 2022-07-21 22:05:50 +0300 |
---|---|---|
committer | thecalcaholic <6317548+theCalcaholic@users.noreply.github.com> | 2022-07-21 22:05:50 +0300 |
commit | 52508e9c37e0de373587db309e6a6a32660d7a29 (patch) | |
tree | 0c833cb508c87b21fabe77ecbba428973e9a03b4 /.github | |
parent | c77b0c45606094a5f23f5c20a8e40c6ed9ab757e (diff) |
build-sd-images.yml: Make sure, IMG variable doesn't change during builds
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build-sd-images.yml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/.github/workflows/build-sd-images.yml b/.github/workflows/build-sd-images.yml index 86d92403..1608262d 100644 --- a/.github/workflows/build-sd-images.yml +++ b/.github/workflows/build-sd-images.yml @@ -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) |