Skip to content

Commit bca9246

Browse files
PttCodingManclaude
andcommitted
ci: publish images on v* tag even when paths-filter reports no changes.
dorny/paths-filter has no base ref to diff against on tag pushes, so it returned backend=false/frontend=false — which made the last v0.0.2 tag skip build-and-push, leaving ghcr.io without a semver image tag and the dashboard's update check with nothing to match. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 41b69b2 commit bca9246

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,11 @@ jobs:
125125
needs: [changes, backend-tests, frontend-tests]
126126
if: |
127127
always() &&
128-
github.event_name != 'pull_request' &&
128+
github.event_name != 'pull_request' &&
129129
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) &&
130-
(needs.changes.outputs.backend == 'true' || needs.changes.outputs.frontend == 'true') &&
130+
(startsWith(github.ref, 'refs/tags/v') ||
131+
needs.changes.outputs.backend == 'true' ||
132+
needs.changes.outputs.frontend == 'true') &&
131133
(needs.backend-tests.result == 'success' || needs.backend-tests.result == 'skipped') &&
132134
(needs.frontend-tests.result == 'success' || needs.frontend-tests.result == 'skipped')
133135
runs-on: ubuntu-latest
@@ -145,7 +147,11 @@ jobs:
145147
- name: Skip if component didn't change
146148
id: check
147149
run: |
148-
if [[ "${{ matrix.component }}" == "backend" && "${{ needs.changes.outputs.backend }}" != "true" ]]; then
150+
# Tag builds always publish both images so the semver tag on ghcr.io
151+
# covers a full release, even if only one side actually changed.
152+
if [[ "${{ github.ref }}" == refs/tags/v* ]]; then
153+
echo "skip=false" >> $GITHUB_OUTPUT
154+
elif [[ "${{ matrix.component }}" == "backend" && "${{ needs.changes.outputs.backend }}" != "true" ]]; then
149155
echo "skip=true" >> $GITHUB_OUTPUT
150156
elif [[ "${{ matrix.component }}" == "frontend" && "${{ needs.changes.outputs.frontend }}" != "true" ]]; then
151157
echo "skip=true" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)