Skip to content

Commit 67d0670

Browse files
committed
WIP: Use latest gitlab-ci.yml with Salsa CI support
Sync latest version from https://salsa.debian.org/go-team/infra/pkg-go-tools/blob/master/config/gitlabciyml.go
1 parent 19be0f0 commit 67d0670

File tree

1 file changed

+40
-3
lines changed

1 file changed

+40
-3
lines changed

debian/gitlab-ci.yml

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,43 @@
1-
# auto-generated, DO NOT MODIFY.
2-
# The authoritative copy of this file lives at:
1+
# DO NOT MODIFY
2+
# This file was automatically generated from authoritative copy at:
33
# https://salsa.debian.org/go-team/infra/pkg-go-tools/blob/master/config/gitlabciyml.go
44
---
5+
stages:
6+
- test
7+
- package
8+
59
include:
6-
- https://salsa.debian.org/go-team/infra/pkg-go-tools/-/raw/master/pipeline/test-archive.yml
10+
- project: go-team/infra/pkg-go-tools
11+
ref: master
12+
file: pipeline/test-archive.yml
13+
# Run the Go team CI only in the go-team project that has access to GitLab
14+
# CI runners tagged 'go-ci'
15+
rules:
16+
- if: $CI_PROJECT_ROOT_NAMESPACE == "go-team"
17+
18+
# Additionally run Salsa CI only if the Play button is pressed on the pipeline
19+
Salsa CI:
20+
stage: package
21+
trigger:
22+
include:
23+
- project: salsa-ci-team/pipeline
24+
ref: master
25+
file: recipes/debian.yml
26+
strategy: depend
27+
rules:
28+
- if: $CI_PIPELINE_SOURCE == "push" # Only trigger pipelines on pushes
29+
when: manual
30+
- if: $CI_PIPELINE_SOURCE == "merge_request_event" # Or on merge requests
31+
when: always
32+
variables:
33+
SALSA_CI_DISABLE_REPROTEST: 1 # Disable to save CI runner resources
34+
35+
# If Salsa CI is not running at
36+
# https://salsa.debian.org/%{project_path}/-/pipelines, ensure that
37+
# https://salsa.debian.org/%{project_path}/-/settings/ci_cd has in field "CI/CD
38+
# configuration file" the same filename as this file.
39+
#
40+
# If Salsa CI is running, but first job is stuck because the project doesn't
41+
# have any runners online assigned to it, ensure that
42+
# https://salsa.debian.org/%{project_path}/-/settings/ci_cd has under "Runners"
43+
# the setting for "Enable instance runners for this project" enabled.

0 commit comments

Comments
 (0)