diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fabbb64e7a3c735d1cf31f27e93b17b7a7071a76..13905c6686d9a11e07ac4422bef3acf9273df67f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,26 +1,5 @@ -include: - # include the component located in the current project from the current SHA - - component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/my-component@$CI_COMMIT_SHA - inputs: - stage: build - -stages: [build, test, release] - -# Check if `component job of my-component` is added. -# This example job could also test that the included component works as expected. -# You can inspect data generated by the component, use GitLab API endpoints, or third-party tools. -ensure-job-added: - stage: test - image: badouralix/curl-jq - # Replace "component job of my-component" with the job name in your component. - script: - - | - route="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${CI_PIPELINE_ID}/jobs" - count=`curl --silent "$route" | jq 'map(select(.name | contains("deploy-dokku"))) | length'` - if [ "$count" != "1" ]; then - exit 1; else - echo "Component Job present" - fi +stages: + - release # If the pipeline is for a new tag with a semantic version, and all previous jobs succeed, # create the release.