sergio/takana
> Una distribución Linux construida con un laboratorio funcional y hermético en el > sótano, y una terminal mutable, clásica y anárquica en el piso de arriba — diseñada > desde el suelo para que una IA programadora entienda, modifique y co…
⎇ 3171dd59f9faebfd7ddd35d3994e41964ac47973
tandas/staged-fallidos-go-20260705/gitlab-runner.toml
History
raw
1# Importada de Alpine aports por `hammer import-alpine` (Etapa G). PUNTO DE PARTIDA — pero
2# YA trae los parches de musl de Alpine (lo que un import de nix pierde). Pendiente: el
3# sha256 del tarball (el wrapper lo calcula), y adaptar build/install del shell de abuild.
4name = "gitlab-runner"
5version = "19.0.1"
6
7[source]
8tarball = "https://gitlab.com/gitlab-org/gitlab-runner/-/archive/v19.0.1/gitlab-runner-v19.0.1.tar.gz"
9# FIXME sha256: el wrapper lo calcula (Alpine publica sha512). sha512 de Alpine:
10# sha512 = "fa07957baa4f89141f9cbe342e10afb3f202312db4ba3edd28c904ad9acb65b64d0a5dcae0e2d46920d06d2c990c83d5546c523b464389c5976d28745d1c59a5"
11sha256 = "c44d94d9a5bcc0298ac5c61b9fbb49c10ee3ccf7f622a7c5684ea74040c38af6"
12patches = ["syslog-log-format.patch", "use-logrus-syslog-hook.patch"]
13
14[build]
15compiler = "zig-cc"
16target = "x86_64-linux-musl"
17link = "static"
18flags = []
19
20[build.phases]
21# de build() de Alpine (traducido; el lab provee $CBUILD/$CHOST — Etapa G Fase 3; revisá --shared para estático):
22compile = '''
23_abuild_phase() {
24# This is used to determine what version of
25 # https://hub.docker.com/r/gitlab/gitlab-runner-helper/tags to use.
26 local gitrev
27 gitrev="$(jq -r '.commit.short_id' "$srcdir/gitlab-runner-19.0.1-tags.json")"
28 echo "Tag v19.0.1 resolved to SHA $gitrev" >&2
29
30 local ldflags="
31 -X gitlab.com/gitlab-org/gitlab-runner/common.NAME=gitlab-runner
32 -X gitlab.com/gitlab-org/gitlab-runner/common.VERSION=19.0.1
33 -X gitlab.com/gitlab-org/gitlab-runner/common.REVISION=$gitrev
34 -X gitlab.com/gitlab-org/gitlab-runner/common.BUILT=$(date -d @"$SOURCE_DATE_EPOCH" -u +%Y-%m-%dT%H:%M:%S%z)
35 -X gitlab.com/gitlab-org/gitlab-runner/common.BRANCH=master
36 "
37 # required for github.com/docker/docker
38 export GO111MODULE=auto
39 go build -ldflags "$ldflags" -o bin/gitlab-runner
40 go build -ldflags "$ldflags" -o bin/gitlab-runner-helper \
41 ./apps/gitlab-runner-helper
42}
43_abuild_phase
44'''
45# de package() de Alpine (traducido $pkgdir→/out):
46install = '''
47_abuild_phase() {
48install -Dm755 bin/gitlab-runner -t "/out"/usr/bin/
49
50 install -Dm755 "$srcdir"/gitlab-runner.initd "/out"/etc/init.d/gitlab-runner
51 install -Dm644 "$srcdir"/gitlab-runner.confd "/out"/etc/conf.d/gitlab-runner
52 install -Dm644 "$srcdir"/gitlab-runner.logrotate "/out"/etc/logrotate.d/gitlab-runner
53
54 install -d -m750 -o "$pkgusers" -g "$pkggroups" "/out"/etc/gitlab-runner
55 install -d -m700 -o "$pkgusers" -g "$pkggroups" "/out"/var/lib/gitlab-runner
56}
57_abuild_phase
58'''
59
60[deps]
61build = ["jq"]