build_job: stage: build script: - npm run build artifacts: paths: - dist/
Once this file is committed to the root of your repository, GitLab automatically detects it. Every push triggers a pipeline. automating devops with gitlab ci/cd pipelines read online
unit_tests: stage: test script: - pytest --cov=myapp tests/ coverage: '/TOTAL.+ ([0-9]1,3%)/' artifacts: reports: coverage_report: coverage_format: cobertura path: coverage.xml build_job: stage: build script: - npm run build
curl --request POST --form "token=$CI_JOB_TOKEN" --form "ref=main" "https://gitlab.com/api/v4/projects/123/trigger/pipeline" automating devops with gitlab ci/cd pipelines read online