Skip to content

Commit ff7d8df

Browse files
feat(ci): wire force_run to docker_force + balena_force
Manual dispatches with force_run now also bypass downstream caches so the rebuild actually produces a fresh image and balena release. Schedule and push events are unaffected.
1 parent 683cdc2 commit ff7d8df

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.github/workflows/bos-launchpad.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ jobs:
7979
track_file: .github/upstream/actions-runner.json
8080
# Push always rebuilds; schedule only when upstream moves.
8181
force_run: ${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.force_run) }}
82+
# When force_run is a manual dispatch, also bypass downstream caches
83+
# so the rebuild ACTUALLY produces a fresh image + balena release.
84+
# Without these, docker re-uses GHA layer cache (same digest) and balena
85+
# returns the existing release for the same source SHA — the "force"
86+
# ends up being a no-op deploy from the device's perspective.
87+
docker_force: ${{ github.event_name == 'workflow_dispatch' && inputs.force_run }}
88+
balena_force: ${{ github.event_name == 'workflow_dispatch' && inputs.force_run }}
8289

8390
image_name: github-runner
8491
dockerhub_namespace: ${{ vars.DOCKERHUB_NAMESPACE }}

0 commit comments

Comments
 (0)