Skip to content

[CI] Flip pulse-frontend deploys to Woodpecker - #128

Merged
uz1mani merged 1 commit into
mainfrom
ci/woodpecker-flip
Jul 10, 2026
Merged

uz1mani merged 1 commit into
mainfrom
ci/woodpecker-flip

Conversation

@uz1mani

@uz1mani uz1mani commented Jul 10, 2026

Copy link
Copy Markdown
Member

Summary

  • Flip pulse-frontend's real deploy pipeline from GitHub Actions to Woodpecker, following the already-soaked shadow build/push config.
  • push.yml: production tags (sha-<7> + latest) replacing shadow tags, plus per-branch cache_to for registry build-cache writes.
  • New deploy.yml: Nomad deploy for main (job pulse-frontend) and staging (job pulse-frontend-staging), plus a main-only cdn-scripts step (failure: ignore) that reproduces the GH pipeline's SRI hash + Exoscale S3 upload + Bunny purge for js.ciphera.net tracking scripts.

Changes

  • .woodpecker/push.yml: shadow tags → sha-${CI_COMMIT_SHA:0:7} + latest; added cache_to: type=registry,ref=...:buildcache,mode=max per branch image.
  • .woodpecker/deploy.yml (new): deploy / deploy-staging steps (digest resolve via registry manifest HEAD, jq patch of Meta.deploy_sha + task image + force_pull, POST to Nomad at 10.10.0.110:4646) mirroring the help-frontend/website shape; cdn-scripts step reads the three tracking scripts from the checkout's public/ dir (same source as the GH workflow), computes SRI, uploads to s3://ciphera-scripts/ via Exoscale, purges each path on Bunny.
  • Removed .github/workflows/build-and-push.yml (superseded). .github/workflows/test.yml untouched.

Test Plan

  • build (dry-run) and push steps go green on main
  • deploy step resolves the correct digest and patches Nomad job pulse-frontend; alloc becomes healthy
  • cdn-scripts step uploads scripts and purges Bunny; js.ciphera.net/script.js ETag/last-modified changes
  • pulse.ciphera.net/ continues to return 200 post-deploy

Switch push.yml from shadow tags to production tags (sha-<7> + latest)
with per-branch registry cache_to, and add deploy.yml covering Nomad
deploy (main + staging) and the main-only CDN scripts publish step
(SRI hash + Exoscale S3 upload + Bunny purge for js.ciphera.net).
Remove the GitHub Actions build-and-push workflow it replaces.
@uz1mani
uz1mani merged commit 45df1f4 into main Jul 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant