Skip to content

Align CI workflows with images-workbench#8

Merged
ianpittwood merged 8 commits into
mainfrom
update-ci-workflows
May 5, 2026
Merged

Align CI workflows with images-workbench#8
ianpittwood merged 8 commits into
mainfrom
update-ci-workflows

Conversation

@ianpittwood
Copy link
Copy Markdown
Contributor

@ianpittwood ianpittwood commented May 4, 2026

Summary

  • Split PR validation into pr.yml matching the images-workbench pattern: lint (pre-commit), Production jobs delegating to posit-dev/images-shared/.github/workflows/bakery-build-pr.yml@main, plus Zizmor and an alls-green CI meta-job. Development-version builds are intentionally omitted — this repo does not produce dev images.
  • Align production.yml triggers (workflow_dispatch + weekly schedule + push: main, no pull_request), concurrency, and the CI meta-job (pinned alls-green, Slack notification on main) with images-workbench. The build matrix stays inline because GAR pushes need workload-identity auth and gcloud auth configure-docker, which aren't supported by the shared bakery-build-native.yml reusable workflow.
  • Add .pre-commit-config.yaml, .github/actionlint.yaml (registers ubuntu-latest-{4x,8x} self-hosted runner labels), .github/dependabot.yml, and .github/zizmor.yml, all copied from images-workbench.
  • Apply pre-commit autofixes surfaced by the new config: trailing whitespace, executable bits, JSON formatting, and quoting \$GITHUB_OUTPUT in the matrix step.

Test plan

  • PR run shows Lint, Production, Session, Zizmor, and the CI alls-green check
  • After merge, Production workflow matrix builds and pushes to GHCR + GCP Artifact Registry (workload-identity auth)
  • Weekly scheduled rebuild still fires and pushes
  • Manual workflow_dispatch against main pushes; against other refs builds without pushing
  • Dependabot opens grouped weekly action-update PRs
  • Zizmor flags any non-posit-dev/images-shared action ref that isn't hash-pinned

🤖 Generated with Claude Code

@ianpittwood ianpittwood marked this pull request as ready for review May 4, 2026 20:08
@ianpittwood ianpittwood requested a review from bschwedler as a code owner May 4, 2026 20:08
@ianpittwood ianpittwood force-pushed the update-ci-workflows branch from eb9c5af to ddd074d Compare May 4, 2026 20:40
ianpittwood and others added 8 commits May 5, 2026 10:24
Align CI with the images-workbench pattern: split PR validation into
its own workflow that delegates production and session matrix builds
to posit-dev/images-shared reusable workflows, and replace the inline
production build job with bakery-build-native.yml. Adds pre-commit
config to back the new lint job. Development-version builds are
intentionally omitted - this repo does not produce dev images.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The bakery-build-native reusable workflow does not support the GCP
workload-identity auth and gcloud Docker config needed to push images
to Google Artifact Registry, so the build job has to stay inline here.
Triggers, concurrency, and the ci meta-job remain aligned with the
images-workbench production workflow; PR validation lives in pr.yml,
so the pull_request trigger is dropped to avoid duplicate builds.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Mirror images-workbench's CI tooling: register the
ubuntu-latest-{4x,8x} self-hosted runner labels so actionlint accepts
the production build matrix; copy the dependabot config (weekly grouped
GitHub Actions updates) and the zizmor unpinned-uses policy (@main
allowed only for posit-dev/images-shared, hash-pin everywhere else).

Also quote $GITHUB_OUTPUT in the matrix output step (shellcheck SC2086)
and apply trailing-whitespace autofixes to existing goss.yaml files.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ianpittwood ianpittwood force-pushed the update-ci-workflows branch from 448a27e to 7c70baa Compare May 5, 2026 16:39
@ianpittwood ianpittwood changed the title Update CI workflows to use shared bakery-build-native Align CI workflows with images-workbench May 5, 2026
@ianpittwood ianpittwood requested a review from Copilot May 5, 2026 16:42
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 24 out of 36 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/pr.yml
Comment on lines +17 to +20
needs:
- lint
- production
- zizmor
@ianpittwood ianpittwood merged commit f964637 into main May 5, 2026
11 of 16 checks passed
@ianpittwood ianpittwood deleted the update-ci-workflows branch May 5, 2026 19:11
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