Skip to content

Commit bbf37ce

Browse files
authored
Merge pull request #47615 from wolfi-dev/gitaly-17.10
Adding VersionStream for gitaly-17.10
2 parents e7a22e7 + 3d2075c commit bbf37ce

File tree

1 file changed

+121
-0
lines changed

1 file changed

+121
-0
lines changed

gitaly-17.10.yaml

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
package:
2+
name: gitaly-17.10
3+
version: "17.10.0"
4+
epoch: 0
5+
description:
6+
copyright:
7+
- license: MIT
8+
dependencies:
9+
provides:
10+
- gitaly=${{package.full-version}}
11+
runtime:
12+
- gitaly-backup-${{vars.major-minor-version}}
13+
14+
var-transforms:
15+
- from: ${{package.version}}
16+
match: ^(\d+\.\d+)\.\d+$
17+
replace: "$1"
18+
to: major-minor-version
19+
20+
environment:
21+
contents:
22+
packages:
23+
- build-base
24+
- busybox
25+
- curl-dev
26+
- expat-dev
27+
- openssl-dev
28+
- pcre2-dev
29+
- wolfi-base
30+
- zlib-dev
31+
environment:
32+
WITH_BUNDLED_GIT: YesPlease
33+
34+
pipeline:
35+
- uses: git-checkout
36+
with:
37+
repository: https://gitlab.com/gitlab-org/gitaly.git
38+
tag: v${{package.version}}
39+
expected-commit: a7fbd971951329e5ab70997923bf2d74bb3e7f02
40+
41+
- runs: |
42+
make install DESTDIR="${{targets.destdir}}" PREFIX=/usr
43+
44+
- uses: strip
45+
46+
subpackages:
47+
# Leave at the top so that links are created for all binaries in package
48+
- name: gitaly-compat-${{vars.major-minor-version}}
49+
description: "Compatibility package to place binaries in the location expected by upstream Dockerfile"
50+
dependencies:
51+
provides:
52+
- gitaly-compat=${{package.full-version}}
53+
pipeline:
54+
- runs: |
55+
mkdir -p "${{targets.contextdir}}"/usr/local/bin
56+
cd ${{targets.destdir}}/usr/bin
57+
for binary in *; do
58+
ln -sf /usr/bin/$binary ${{targets.contextdir}}/usr/local/bin/$binary
59+
done
60+
61+
- name: gitaly-git-${{vars.major-minor-version}}
62+
description: Bundled Git for Gitaly
63+
dependencies:
64+
provides:
65+
- gitaly-git=${{vars.major-minor-version}}
66+
pipeline:
67+
- runs: |
68+
mkdir -p ${{targets.contextdir}}/usr/bin
69+
mv ${{targets.destdir}}/usr/bin/gitaly-git-* ${{targets.contextdir}}/usr/bin
70+
71+
- name: gitaly-backup-${{vars.major-minor-version}}
72+
description: Git repository backup tool
73+
dependencies:
74+
provides:
75+
- gitaly-backup=${{vars.major-minor-version}}
76+
pipeline:
77+
- runs: |
78+
mkdir -p ${{targets.contextdir}}/usr/bin
79+
mv ${{targets.destdir}}/usr/bin/gitaly-backup ${{targets.contextdir}}/usr/bin/
80+
81+
- name: gitaly-init-cgroups-${{vars.major-minor-version}}
82+
# https://gitlab.com/gitlab-org/build/CNG/-/blob/master/gitaly-init-cgroups/Dockerfile
83+
description: gitaly-init-cgroups
84+
dependencies:
85+
provides:
86+
- gitaly-init-cgroups=${{package.full-version}}
87+
pipeline:
88+
- uses: go/build
89+
with:
90+
packages: .
91+
modroot: ./tools/gitaly-init-cgroups/
92+
output: setup_cgroups
93+
94+
- name: gitaly-init-cgroups-compat-${{vars.major-minor-version}}
95+
description: "Compatibility package to place binaries in the location expected by upstream Dockerfile"
96+
dependencies:
97+
provides:
98+
- gitaly-init-cgroups-compat=${{package.full-version}}
99+
pipeline:
100+
- runs: |
101+
mkdir -p "${{targets.contextdir}}"/
102+
ln -sf /usr/bin/setup_cgroups "${{targets.contextdir}}"/setup_cgroups
103+
104+
update:
105+
enabled: true
106+
git:
107+
strip-prefix: v
108+
tag-filter-prefix: v17.10
109+
110+
test:
111+
pipeline:
112+
- runs: |
113+
gitaly -v | grep "${{package.version}}"
114+
gitaly-blackbox -version | grep "${{package.version}}"
115+
gitaly-backup -v | grep "${{package.version}}"
116+
gitaly --version
117+
gitaly --help
118+
gitaly-blackbox --version
119+
gitaly-blackbox --help
120+
praefect --version
121+
praefect --help

0 commit comments

Comments
 (0)