summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
Diffstat (limited to 'ci')
-rw-r--r--ci/build.yaml51
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