| 1 | # DO NOT MODIFY |
| 2 | # This file was automatically generated from the authoritative copy at: |
| 3 | # https://salsa.debian.org/go-team/infra/pkg-go-tools/blob/master/config/gitlabciyml.go |
| 4 | --- |
| 5 | stages: |
| 6 | - test |
| 7 | - package |
| 8 | |
| 9 | include: |
| 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 | Salsa CI: |
| 19 | stage: package |
| 20 | trigger: |
| 21 | include: |
| 22 | - project: salsa-ci-team/pipeline |
| 23 | ref: master |
| 24 | file: recipes/debian.yml |
| 25 | strategy: depend |
| 26 | rules: |
| 27 | # Do not create a pipeline for tags unless SALSA_CI_ENABLE_PIPELINE_ON_TAGS is set |
| 28 | - if: $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/ |
| 29 | when: never |
| 30 | # Avoid duplicated pipelines, do not run detached pipelines |
| 31 | - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' |
| 32 | when: never |
| 33 | # Run Salsa CI only if the Play button is pressed on the pipeline |
| 34 | - if: $CI_PIPELINE_SOURCE == "push" |
| 35 | when: manual |
| 36 | variables: |
| 37 | SALSA_CI_DISABLE_REPROTEST: 1 # Disable to save CI runner resources |
| 38 | |
| 39 | # If Salsa CI is not running at |
| 40 | # https://salsa.debian.org/%{project_path}/-/pipelines, ensure that |
| 41 | # https://salsa.debian.org/%{project_path}/-/settings/ci_cd has in field "CI/CD |
| 42 | # configuration file" the same filename as this file. |
| 43 | # |
| 44 | # If Salsa CI is running, but first job is stuck because the project doesn't |
| 45 | # have any runners online assigned to it, ensure that |
| 46 | # https://salsa.debian.org/%{project_path}/-/settings/ci_cd has under "Runners" |
| 47 | # the setting for "Enable instance runners for this project" enabled. |