Skip to content

Commit

Permalink
Adding VersionStream for gitaly-17.5 (#31201)
Browse files Browse the repository at this point in the history
Signed-off-by: RJ Trujillo <[email protected]>
Co-authored-by: octo-sts[bot] <[email protected]>
Co-authored-by: RJ Trujillo <[email protected]>
  • Loading branch information
3 people authored Oct 23, 2024
1 parent 3eb3a26 commit 153db97
Showing 1 changed file with 121 additions and 0 deletions.
121 changes: 121 additions & 0 deletions gitaly-17.5.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
package:
name: gitaly-17.5
version: "17.5.1"
epoch: 0
description:
copyright:
- license: MIT
dependencies:
provides:
- gitaly=${{package.full-version}}
runtime:
- gitaly-backup-${{vars.major-minor-version}}

var-transforms:
- from: ${{package.version}}
match: ^(\d+\.\d+)\.\d+$
replace: "$1"
to: major-minor-version

environment:
contents:
packages:
- build-base
- busybox
- curl-dev
- expat-dev
- openssl-dev
- pcre2-dev
- wolfi-base
- zlib-dev
environment:
WITH_BUNDLED_GIT: YesPlease

pipeline:
- uses: git-checkout
with:
repository: https://gitlab.com/gitlab-org/gitaly.git
tag: v${{package.version}}
expected-commit: 42b2dc21d50d19003ae74ba9cdadc94aed686162

- runs: |
make install DESTDIR="${{targets.destdir}}" PREFIX=/usr
- uses: strip

subpackages:
# Leave at the top so that links are created for all binaries in package
- name: gitaly-compat-${{vars.major-minor-version}}
description: "Compatibility package to place binaries in the location expected by upstream Dockerfile"
dependencies:
provides:
- gitaly-compat=${{package.full-version}}
pipeline:
- runs: |
mkdir -p "${{targets.contextdir}}"/usr/local/bin
cd ${{targets.destdir}}/usr/bin
for binary in *; do
ln -sf /usr/bin/$binary ${{targets.contextdir}}/usr/local/bin/$binary
done
- name: gitaly-git-${{vars.major-minor-version}}
description: Bundled Git for Gitaly
dependencies:
provides:
- gitaly-git=${{vars.major-minor-version}}
pipeline:
- runs: |
mkdir -p ${{targets.contextdir}}/usr/bin
mv ${{targets.destdir}}/usr/bin/gitaly-git-* ${{targets.contextdir}}/usr/bin
- name: gitaly-backup-${{vars.major-minor-version}}
description: Git repository backup tool
dependencies:
provides:
- gitaly-backup=${{vars.major-minor-version}}
pipeline:
- runs: |
mkdir -p ${{targets.contextdir}}/usr/bin
mv ${{targets.destdir}}/usr/bin/gitaly-backup ${{targets.contextdir}}/usr/bin/
- name: gitaly-init-cgroups-${{vars.major-minor-version}}
# https://gitlab.com/gitlab-org/build/CNG/-/blob/master/gitaly-init-cgroups/Dockerfile
description: gitaly-init-cgroups
dependencies:
provides:
- gitaly-init-cgroups=${{package.full-version}}
pipeline:
- uses: go/build
with:
packages: .
modroot: ./tools/gitaly-init-cgroups/
output: setup_cgroups

- name: gitaly-init-cgroups-compat-${{vars.major-minor-version}}
description: "Compatibility package to place binaries in the location expected by upstream Dockerfile"
dependencies:
provides:
- gitaly-init-cgroups-compat=${{package.full-version}}
pipeline:
- runs: |
mkdir -p "${{targets.contextdir}}"/
ln -sf /usr/bin/setup_cgroups "${{targets.contextdir}}"/setup_cgroups
update:
enabled: true
git:
strip-prefix: v
tag-filter-prefix: v17.5

test:
pipeline:
- runs: |
gitaly -v | grep "${{package.version}}"
gitaly-blackbox -version | grep "${{package.version}}"
gitaly-backup -v | grep "${{package.version}}"
gitaly --version
gitaly --help
gitaly-blackbox --version
gitaly-blackbox --help
praefect --version
praefect --help

0 comments on commit 153db97

Please sign in to comment.