include: - template: Security/Secret-Detection.gitlab-ci.yml These security jobs run automatically, enforcing "shift-left" security. Environments Track deployments by defining environments:
GitLab then shows a dashboard of deployments, and you can roll back from the UI. For secure cluster access, use the GitLab Agent instead of storing kubeconfig . automating devops with gitlab ci/cd pipelines read online
test_job: stage: test script: - npm run test include: - template: Security/Secret-Detection
workflow: rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS when: never - if: $CI_COMMIT_BRANCH Now each merge request runs a full pipeline, and GitLab blocks merging if tests fail. Modern applications often consist of multiple microservices. GitLab supports cross-project automation. Triggering a downstream pipeline In project A (frontend): automating devops with gitlab ci/cd pipelines read online