From 24eaf3fe1eca929470dde051fcf5f8236281aa62 Mon Sep 17 00:00:00 2001 From: nicomiguelino Date: Wed, 13 Mar 2024 13:40:34 -0700 Subject: [PATCH 1/5] fix: Upgrade Balena CLI version from `13.7.1` to `18.1.2` --- .github/workflows/build-balena-disk-image.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-balena-disk-image.yaml b/.github/workflows/build-balena-disk-image.yaml index 4ae1f9d00..1b67bc81c 100644 --- a/.github/workflows/build-balena-disk-image.yaml +++ b/.github/workflows/build-balena-disk-image.yaml @@ -33,7 +33,7 @@ jobs: os download "$BALENA_IMAGE" \ --output "$BALENA_IMAGE.img" \ --version default - balena_cli_version: 13.7.1 + balena_cli_version: 18.1.2 - name: balena CLI Action - preload uses: balena-labs-research/community-cli-action@1.0.0 @@ -56,7 +56,7 @@ jobs: "$BALENA_IMAGE.img" \ --config-network=ethernet \ --fleet screenly_ose/anthias-${{ matrix.board }} - balena_cli_version: 13.7.1 + balena_cli_version: 18.1.2 - name: Package up image run: | From 950e4c894da3530c7af77e8e5a4c85bb4cbc77c6 Mon Sep 17 00:00:00 2001 From: nicomiguelino Date: Wed, 13 Mar 2024 13:52:22 -0700 Subject: [PATCH 2/5] draft: Temporarily upload images as artifacts. --- .../workflows/build-balena-disk-image.yaml | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-balena-disk-image.yaml b/.github/workflows/build-balena-disk-image.yaml index 1b67bc81c..8c220b8ae 100644 --- a/.github/workflows/build-balena-disk-image.yaml +++ b/.github/workflows/build-balena-disk-image.yaml @@ -87,8 +87,20 @@ jobs: "release_date": $RELEASE_DATE }' > "$(date -I)-$BALENA_IMAGE.json" - - uses: ncipollo/release-action@v1.11.2 + # TODO: Remove this block when ready. + - name: Upload Balena images as artifacts + uses: actions/upload-artifact@v4 with: - allowUpdates: true - prerelease: true - artifacts: "*raspberry*.zip,*raspberry*.sha256,*raspberry*.json" + name: balena-image-${{ matrix.board }} + path: | + "$BALENA_IMAGE.img" + "$(date -I)-$BALENA_IMAGE.zip" + "$(date -I)-$BALENA_IMAGE.sha256" + "$(date -I)-$BALENA_IMAGE.json" + + # TODO: Uncomment this block when ready. + # - uses: ncipollo/release-action@v1.11.2 + # with: + # allowUpdates: true + # prerelease: true + # artifacts: "*raspberry*.zip,*raspberry*.sha256,*raspberry*.json" From 991f535a31a2f1d687f40317bb52e7348b8b832e Mon Sep 17 00:00:00 2001 From: nicomiguelino Date: Wed, 13 Mar 2024 14:28:15 -0700 Subject: [PATCH 3/5] draft: Add temporary CI steps to find out why some steps are failing. --- .github/workflows/build-balena-disk-image.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build-balena-disk-image.yaml b/.github/workflows/build-balena-disk-image.yaml index 8c220b8ae..e97fd7d8a 100644 --- a/.github/workflows/build-balena-disk-image.yaml +++ b/.github/workflows/build-balena-disk-image.yaml @@ -87,6 +87,12 @@ jobs: "release_date": $RELEASE_DATE }' > "$(date -I)-$BALENA_IMAGE.json" + # TODO: Remove this block when ready. + - name: List files + run: | + pwd + ls -l + # TODO: Remove this block when ready. - name: Upload Balena images as artifacts uses: actions/upload-artifact@v4 From f73b380112ba52674e90df0a8eebeb3ab59d2f20 Mon Sep 17 00:00:00 2001 From: nicomiguelino Date: Wed, 13 Mar 2024 14:43:43 -0700 Subject: [PATCH 4/5] draft: Tweak artifact path. --- .github/workflows/build-balena-disk-image.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/build-balena-disk-image.yaml b/.github/workflows/build-balena-disk-image.yaml index e97fd7d8a..9562f8e54 100644 --- a/.github/workflows/build-balena-disk-image.yaml +++ b/.github/workflows/build-balena-disk-image.yaml @@ -98,11 +98,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: balena-image-${{ matrix.board }} - path: | - "$BALENA_IMAGE.img" - "$(date -I)-$BALENA_IMAGE.zip" - "$(date -I)-$BALENA_IMAGE.sha256" - "$(date -I)-$BALENA_IMAGE.json" + path: "*.img" # TODO: Uncomment this block when ready. # - uses: ncipollo/release-action@v1.11.2 From cabfe23141d224f174073a8a82e11bb39cbb6b7b Mon Sep 17 00:00:00 2001 From: nicomiguelino Date: Wed, 13 Mar 2024 16:03:22 -0700 Subject: [PATCH 5/5] cleanup: Remove temporary GitHub workflow changes. --- .../workflows/build-balena-disk-image.yaml | 22 ++++--------------- 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build-balena-disk-image.yaml b/.github/workflows/build-balena-disk-image.yaml index 9562f8e54..1b67bc81c 100644 --- a/.github/workflows/build-balena-disk-image.yaml +++ b/.github/workflows/build-balena-disk-image.yaml @@ -87,22 +87,8 @@ jobs: "release_date": $RELEASE_DATE }' > "$(date -I)-$BALENA_IMAGE.json" - # TODO: Remove this block when ready. - - name: List files - run: | - pwd - ls -l - - # TODO: Remove this block when ready. - - name: Upload Balena images as artifacts - uses: actions/upload-artifact@v4 + - uses: ncipollo/release-action@v1.11.2 with: - name: balena-image-${{ matrix.board }} - path: "*.img" - - # TODO: Uncomment this block when ready. - # - uses: ncipollo/release-action@v1.11.2 - # with: - # allowUpdates: true - # prerelease: true - # artifacts: "*raspberry*.zip,*raspberry*.sha256,*raspberry*.json" + allowUpdates: true + prerelease: true + artifacts: "*raspberry*.zip,*raspberry*.sha256,*raspberry*.json"