31 lines
966 B
YAML
31 lines
966 B
YAML
stages:
|
|
- test
|
|
- deploy
|
|
|
|
# CI/CD catalog components. Without network access or a token the fetches will
|
|
# fail and gitlab-sim emits a WARNING for each, then lints the local jobs normally.
|
|
include:
|
|
# Standard single-segment component path (file layout: templates/sast.yml)
|
|
- component: gitlab.com/components/sast/sast@latest
|
|
with:
|
|
stage: test
|
|
|
|
# Multi-segment project path (file layout: templates/build.yml)
|
|
- component: gitlab.com/my-org/ci-templates/build@v2.0.0
|
|
|
|
# Directory-based component (file layout: templates/lint/template.yml)
|
|
- component: gitlab.example.com/platform/components/lint@main
|
|
|
|
# Component using a CI variable in the host — cannot be resolved at lint time.
|
|
- component: $CI_SERVER_FQDN/internal/ci-catalog/deploy@v1.0
|
|
|
|
# Mixed includes: project include alongside component
|
|
- project: my-org/shared-ci
|
|
ref: main
|
|
file: /templates/common.yml
|
|
|
|
deploy-job:
|
|
stage: deploy
|
|
script:
|
|
- echo "deploying"
|