Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding VersionStream for gitlab-kas-17.6 #35118

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions gitlab-kas-17.6.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
package:
name: gitlab-kas-17.6
version: 17.6.0
epoch: 0
description: GitLab KAS is a component installed together with GitLab. It is required to manage the GitLab agent for Kubernetes.
copyright:
- license: MIT
dependencies:
provides:
- gitlab-kas=${{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/cluster-integration/gitlab-agent
tag: v${{package.version}}
expected-commit: 847d7deea3b9937a8824fe8e783fd142ba426d8f

- uses: go/build
with:
packages: ./cmd/kas
output: kas
ldflags: "-w -X gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17/cmd.Version=v${{package.version}} -X gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17/cmd.Commit=v${{package.version}} -X gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17/cmd.BuildTime=$(date +%F-%T)"

subpackages:
- name: gitlab-agent-${{vars.major-minor-version}}
description: GitLab Agent for Kubernetes allows to integrate your cluster with GitLab in a secure way.
dependencies:
provides:
- gitlab-agent=${{package.full-version}}
pipeline:
- uses: go/build
with:
packages: ./cmd/agentk
output: agentk
ldflags: "-w -X gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17/cmd.Version=v${{package.version}} -X gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17/cmd.Commit=v${{package.version}} -X gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17/cmd.BuildTime=$(date +%F-%T)"

update:
enabled: true
git:
strip-prefix: v
tag-filter-prefix: v17.6

test:
environment:
contents:
packages:
- gitlab-kas-${{vars.major-minor-version}}
- gitlab-agent-${{vars.major-minor-version}}
pipeline:
- runs: |
kas --version
agentk --version
kas --help
Loading