From af40c586306b1d159cb297b66fa7ed5646beca6c Mon Sep 17 00:00:00 2001 From: "octo-sts[bot]" <157150467+octo-sts[bot]@users.noreply.github.com> Date: Mon, 23 Sep 2024 15:57:43 +0100 Subject: [PATCH] Adding VersionStream for gitlab-pages-17.4 (#29164) 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 Co-authored-by: octo-sts[bot] <157150467+octo-sts@users.noreply.github.com> Co-authored-by: Mark McCormick --- gitlab-pages-17.4.yaml | 57 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 gitlab-pages-17.4.yaml diff --git a/gitlab-pages-17.4.yaml b/gitlab-pages-17.4.yaml new file mode 100644 index 00000000000..df7636a4ebc --- /dev/null +++ b/gitlab-pages-17.4.yaml @@ -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