Skip to content

ci: publish dev/latest Docker images on every push, lint workflows with actionlint - #90

Open
tabedzki wants to merge 3 commits into
m-beau:devfrom
tabedzki:tabedzki/ci/dev-image-tag
Open

tabedzki wants to merge 3 commits into
m-beau:devfrom
tabedzki:tabedzki/ci/dev-image-tag

Conversation

@tabedzki

@tabedzki tabedzki commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

🤖 AI text below 🤖

Summary

docker-publish.yml now also builds on pushes to dev and main (direct commits and PR merges):

Trigger Tags pushed to GHCR
push to dev dev (moving) + dev-<short sha> (immutable)
push to main latest (moving) + main-<short sha> (immutable)
v* tag / release <tag>, plus latest for non-prereleases (unchanged)
  • ⚠️ Behaviour change: prod pulls latest via Watchtower, so every merge to main now deploys right away instead of waiting for a v* tag.
  • Branch builds can only publish latest from main. A dev build never touches it.
  • Per-ref concurrency group: a newer build on the same branch cancels the older one, so a stale build can't finish last and overwrite dev/latest. Tag/release builds are never cancelled.
  • New actionlint.yml workflow runs a pinned actionlint (v1.7.12, with shellcheck for run: blocks) on pushes/PRs to main/dev that touch .github/workflows/**. It passes on this PR.
  • docs/getting-started.md now documents the dev and latest images.

Test plan

  • actionlint passes on all workflows
  • After merge to dev: GHCR shows dev and dev-<sha>, and latest is unchanged
  • After the next promotion to main: GHCR shows latest and main-<sha>
  • Next v* tag still publishes <tag> (+ latest for non-prereleases)

🤖 Generated with Claude Code

Trigger the Docker publish workflow on pushes to the dev branch (direct
commits and PR merges). Each build is tagged with the moving `dev` tag and
an immutable `dev-<short sha>` tag; `latest` is now gated to tag refs so a
dev build can never reach prod via Watchtower. A per-ref concurrency group
cancels superseded dev builds so a stale build cannot overwrite `dev`.

Document the `dev` image in the getting-started guide.

Assisted-by: ClaudeCode:claude-opus-5-5
Add a workflow that runs a pinned actionlint (with shellcheck for run
blocks) on pushes and PRs to main/dev that touch .github/workflows.

Assisted-by: ClaudeCode:claude-opus-5-5
Pushes to main now build the image and tag it `latest` plus an immutable
`main-<short sha>`, so prod (Watchtower on `latest`) follows main without
waiting for a version tag. Version tags keep their existing tagging.
Superseded builds on any branch are cancelled so `latest`/`dev` can't be
overwritten by a stale build.

Assisted-by: ClaudeCode:claude-opus-5-5
@tabedzki tabedzki changed the title ci: publish a dev Docker image on every push to dev ci: publish dev/latest Docker images on every push, lint workflows with actionlint Nov 2, 2026
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (dev@697dbdd). Learn more about missing BASE report.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@          Coverage Diff           @@
##             dev      #90   +/-   ##
======================================
  Coverage       ?   83.35%           
======================================
  Files          ?       21           
  Lines          ?     3406           
  Branches       ?        0           
======================================
  Hits           ?     2839           
  Misses         ?      567           
  Partials       ?        0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants