Skip to content

Commit

Permalink
Adding VersionStream for gitlab-pages-17.4 (#29164)
Browse files Browse the repository at this point in the history
GitLab released a new version - v17.4. Our automation has prepared PRs,
but there were a couple of items that required manual interventions,
such as the Git SHA and the tag-filter-prefix. Both of which we'll see
if we can improve for future.

---------

Signed-off-by: Mark McCormick <[email protected]>
Co-authored-by: octo-sts[bot] <[email protected]>
Co-authored-by: Mark McCormick <[email protected]>
  • Loading branch information
3 people authored Sep 23, 2024
1 parent e7b5b75 commit af40c58
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions gitlab-pages-17.4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
package:
name: gitlab-pages-17.4
version: 17.4.0
epoch: 0
description: GitLab Pages daemon used to serve static websites for GitLab users.
copyright:
- license: MIT
dependencies:
provides:
- gitlab-pages=${{package.full-version}}

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

pipeline:
- uses: git-checkout
with:
repository: https://gitlab.com/gitlab-org/gitlab-pages.git
tag: v${{package.version}}
expected-commit: 0443e567fa25c71572fb38cfbb3546c7a774f9cc

- uses: go/build
with:
packages: .
output: gitlab-pages
tags: continuous_profiler_stackdriver
ldflags: "-w -X main.VERSION=${{package.version}} -X main.REVISION=${{package.version}}"

- runs: |
mkdir -p ${{targets.contextdir}}/srv/gitlab-pages
mkdir -p ${{targets.contextdir}}/var/log/gitlab
subpackages:
- name: gitlab-pages-compat-${{vars.major-minor-version}}
description: Links GitLab pages to bin directory
dependencies:
provides:
- gitlab-pages-compat=${{package.full-version}}
pipeline:
- runs: |
mkdir -p ${{targets.contextdir}}/bin
ln -sf /usr/bin/gitlab-pages ${{targets.contextdir}}/bin/gitlab-pages
update:
enabled: true
git:
strip-prefix: v
tag-filter-prefix: v17.4

test:
pipeline:
# AUTOGENERATED
- runs: |
gitlab-pages --version

0 comments on commit af40c58

Please sign in to comment.