fix(ci): always build kiosk binary + image on every master push

This commit is contained in:
Mitchell R 2026-05-22 18:37:23 +02:00
parent 05ca368f29
commit ee281fc9dc
No known key found for this signature in database

View file

@ -41,7 +41,6 @@ jobs:
channel: ${{ steps.compute.outputs.channel }} channel: ${{ steps.compute.outputs.channel }}
ref: ${{ steps.compute.outputs.ref }} ref: ${{ steps.compute.outputs.ref }}
build_image: ${{ steps.compute.outputs.build_image }} build_image: ${{ steps.compute.outputs.build_image }}
needs_build: ${{ steps.compute.outputs.needs_build }}
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
with: with:
@ -92,24 +91,12 @@ jobs:
esac esac
tag="v${version}" tag="v${version}"
build_image=true build_image=true
needs_build=true
# Skip kiosk+image builds on master push when only server code changed
if [[ "$GITHUB_EVENT_NAME" == "push" && "$GITHUB_REF" == refs/heads/master ]]; then
kiosk_relevant=$(git diff --name-only HEAD~1 HEAD -- kiosk/ deploy/ .github/ | wc -l)
if [[ "$kiosk_relevant" -eq 0 ]]; then
echo "::notice::No kiosk/deploy/.github changes — skipping binary + image builds"
needs_build=false
build_image=false
fi
fi
echo "version=$version" >> "$GITHUB_OUTPUT" echo "version=$version" >> "$GITHUB_OUTPUT"
echo "tag=$tag" >> "$GITHUB_OUTPUT" echo "tag=$tag" >> "$GITHUB_OUTPUT"
echo "channel=$channel" >> "$GITHUB_OUTPUT" echo "channel=$channel" >> "$GITHUB_OUTPUT"
echo "ref=$GITHUB_SHA" >> "$GITHUB_OUTPUT" echo "ref=$GITHUB_SHA" >> "$GITHUB_OUTPUT"
echo "build_image=$build_image" >> "$GITHUB_OUTPUT" echo "build_image=$build_image" >> "$GITHUB_OUTPUT"
echo "needs_build=$needs_build" >> "$GITHUB_OUTPUT"
- name: Create / ensure release record (lightweight tag for master pushes) - name: Create / ensure release record (lightweight tag for master pushes)
env: env:
@ -141,7 +128,6 @@ jobs:
# ---- Build assets --------------------------------------------------------- # ---- Build assets ---------------------------------------------------------
build: build:
needs: meta needs: meta
if: needs.meta.outputs.needs_build == 'true'
uses: ./.github/workflows/build.yml uses: ./.github/workflows/build.yml
with: with:
version: ${{ needs.meta.outputs.version }} version: ${{ needs.meta.outputs.version }}