diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0b9f3f13ecf75bbf58d33572a9507e08d585b05c..10d7dc3bdce4d5cc2ae00a7c20225d572a2589b4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,19 +1,3 @@ -stages: - - build-container - - component - - test - - release - -include: - # include the component located in the current project from the current SHA - - component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/vs22-cmake@$CI_COMMIT_SHA - inputs: - stage: component - tags: - - cgg - - win22 - - docker-windows - .template-docker-windows: tags: - cgg @@ -58,6 +42,7 @@ include: - docker push "${TAG}" - docker tag "${TAG}" "${TAG_LATEST}" - docker push "${TAG_LATEST}" + # TODO: create container tags for git tags automatically after_script: # Workaround for https://gitlab.com/gitlab-org/gitlab-foss/-/issues/40925 @@ -75,37 +60,3 @@ x64-vs2022: # TOOLSET: "v142" # 142: VS 2019 # TOOLSET: "v143" # 143: VS 2022 -ensure-job-added: - tags: - - cgg - - docker-docker - - linux - stage: test - image: badouralix/curl-jq - script: - - | - route="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${CI_PIPELINE_ID}/jobs" - echo "$route" - count=`curl --silent "$route" | jq 'map(select(.name | contains("vs22-x64"))) | length'` - if [ "$count" != "1" ]; then - curl --silent "$route" | jq '.' - exit 1; else - echo "Component Job present" - fi - - -# If the pipeline is for a new tag with a semantic version, and all previous jobs succeed, -# create the release. -create-release: - tags: - - cgg - - docker-docker - - linux - stage: release - image: registry.gitlab.com/gitlab-org/release-cli:latest - script: echo "Creating release $CI_COMMIT_TAG" - rules: - - if: $CI_COMMIT_TAG - release: - tag_name: $CI_COMMIT_TAG - description: "Release $CI_COMMIT_TAG of components repository $CI_PROJECT_PATH"