Skip to content
This repository was archived by the owner on Oct 14, 2026. It is now read-only.

OneDev CI (step 1): checks and images jobs, no push yet - #25

Merged
lightningspirit merged 2 commits into
mainfrom
onedev-ci
Oct 14, 2026
Merged

lightningspirit merged 2 commits into
mainfrom
onedev-ci

Conversation

@lightningspirit

Copy link
Copy Markdown
Contributor

Summary

First step of the move to OneDev (moveyourdigital/devops/coder-templates, created and filled with main + all tags). GitHub stays the source of truth until the switch.

  • .onedev-buildspec.yml (validated and normalized with tod build check-spec against our 16.4.1 server), executor remote, image docker:29.8.2-cli with the Docker socket:
    • checks: just lint + just validate (tools from .mise.toml via Alpine's mise).
    • images: on PRs scripts/check-tags.sh HEAD^1 (OneDev PR builds run on a merge commit; first parent = target), then scripts/ci-images.sh. No push yet.
  • scripts/ci-images.sh: build (docker buildx --load), trivy, smoke test, optional --push; existing tags are checked for the same build/.
  • scripts/check-tags.sh: the check-tags logic moved out of the justfile (used by just check-tags and CI). Same behavior (re-tested: build/ change without bump fails).
  • just lint-gh: actionlint + zizmor split out (GitHub-only; zizmor is a glibc binary and fails on Alpine). GitHub checks runs both.
  • README: OneDev CI status.

Tested on OneDev

  • Build Include --chmod=0644 in Dockerfiles #1 checks on branch onedev-ci: successful.
  • Build Update Dockerfile #2 images: all three tags exist → "same build/" check passed.
  • images with a local test tag (tod build run --local, nothing committed or pushed): node-js built, trivy clean, smoke test passed (tod skills: 8).

Next (after merge)

Push to the OneDev registry, daily scan + rebuild PRs, Renovate step, required builds, x1 pull access, switch.

🤖 Generated with Claude Code

lightningspirit and others added 2 commits October 14, 2026 15:58
- .onedev-buildspec.yml (validated with tod build check-spec):
  checks = just lint + just validate; images = check-tags on PRs, then
  build, trivy scan and smoke test of new tags. Executor remote,
  docker:29.8.2-cli with the Docker socket.
- scripts/ci-images.sh: build/scan/smoke/(push) outside GitHub Actions.
- scripts/check-tags.sh: the check-tags logic, used by just and CI.
- just lint-gh: actionlint + zizmor, only for the GitHub workflows
  (zizmor is glibc-only; the OneDev job runs on Alpine).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lightningspirit
lightningspirit merged commit f5e0651 into main Oct 14, 2026
7 checks passed
@lightningspirit
lightningspirit deleted the onedev-ci branch October 14, 2026 15:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant