diff --git a/gitlab-kas-18.1.yaml b/gitlab-kas-18.1.yaml new file mode 100644 index 00000000000..9a15c034f7f --- /dev/null +++ b/gitlab-kas-18.1.yaml @@ -0,0 +1,70 @@ +package: + name: gitlab-kas-18.1 + version: "18.1.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: 290a9ef14ad59a4d1d0c57da095860152d1b1090 + + - 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 -d@${SOURCE_DATE_EPOCH} +%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 -d@${SOURCE_DATE_EPOCH} +%F-%T) + test: + pipeline: + - runs: agentk --version + +update: + enabled: true + git: + strip-prefix: v + tag-filter-prefix: v18.1 + +test: + environment: + contents: + packages: + - gitlab-kas-${{vars.major-minor-version}} + - gitlab-agent-${{vars.major-minor-version}} + pipeline: + - runs: | + kas --version + agentk --version + kas --help