diff options
| author | dev <dev@example> | 2026-11-15 13:54:31 +0000 |
|---|---|---|
| committer | dev <dev@example> | 2026-11-15 13:54:31 +0000 |
| commit | da06d4f56afa72ae832238f91358b9aeaeaf0da5 (patch) | |
| tree | 7ead0d915bf4e388dcc55d3b63b4fc0628ef895b /ci/build.yaml | |
| parent | 85b7fa7f8456c84f65a0d81b760c430098ae7fd8 (diff) | |
| download | access-control-main.tar.gz access-control-main.zip | |
The container image and all the server configuration (Dockerfile, entrypoint,
cgitrc, sshd, lighttpd, create-repo, git-host-key) move to the git-host project.
This repo is now just the program: cmd/, src/, test/, the Makefile that builds
git-authz and installs it, and the example policy - the same cmd/src/test/obj
layout the reference projects use.
The CI pipeline keeps the compile-and-test gate (strict, test, sanitizer,
install) and drops the container-build job, which belongs to git-host now.
Diffstat (limited to 'ci/build.yaml')
| -rw-r--r-- | ci/build.yaml | 51 |
1 files changed, 9 insertions, 42 deletions
diff --git a/ci/build.yaml b/ci/build.yaml index d881096..99e377d 100644 --- a/ci/build.yaml +++ b/ci/build.yaml @@ -5,14 +5,6 @@ resources: uri: ssh://git@git.jnsn.dev:52502/~/git-host-c.git branch: main private_key: ((vbump.repo-key)) -- name: final-image - type: registry-image - icon: docker - source: - repository: registry.jnsn.dev/git-host-c - username: ((vbump.username)) - password: ((vbump.password)) - tag: latest jobs: - name: update-pipeline @@ -22,15 +14,16 @@ jobs: - set_pipeline: self file: repo/ci/build.yaml -# The whole point of a C rewrite was to have one binary with no moving parts, so -# the gate is: compile it under the strictest warnings the compiler has, run the -# unit suite and the behavioural suite, and run both again under the sanitizers. -# Alpine, because that is the libc the image is built against - a suite that -# passes against glibc and segfaults on musl has told us nothing. +# This project builds one thing: the access control executable. The gate is +# therefore the program itself - compile it under the strictest warnings the +# compiler has, run the unit suite and the behavioural suite, and run both again +# under the sanitizers. Alpine, because that is the libc the host image (the +# git-host project) builds this against - a suite that passes against glibc and +# segfaults on musl has told us nothing. # -# The container suite (../git-host-integration) is deliberately not here: it -# needs a container runtime inside the build, and a suite that fails because the -# sandbox cannot mount an overlay is not a signal about the policy. +# The container image and the container suite (../git-host-integration) live in +# the git-host project now: this repo ships the program and its install, not the +# server that runs it. - name: test plan: - get: repo @@ -60,29 +53,3 @@ jobs: printf 'install: ' make install DESTDIR=/tmp/stage >/dev/null && \ readlink /tmp/stage/usr/local/share/git-host/hooks/pre-receive - -- name: build-container - plan: - - get: repo - trigger: true - passed: [test] - privileged: true - config: - platform: linux - image_resource: - type: registry-image - source: - repository: concourse/oci-build-task - inputs: - - name: repo - outputs: - - name: image - params: - CONTEXT: repo - DOCKERFILE: repo/container/Dockerfile - UNPACK_ROOTFS: "true" - run: - path: build - - put: final-image - params: - image: image/image.tar |
