Skip to content
Snippets Groups Projects
Commit 67550249 authored by Martin Heistermann's avatar Martin Heistermann
Browse files

ci

parent 08dee7fa
Branches
Tags v0.0.3
No related merge requests found
Pipeline #9082 failed
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: .template-docker-windows:
tags: tags:
- cgg - cgg
...@@ -58,6 +42,7 @@ include: ...@@ -58,6 +42,7 @@ include:
- docker push "${TAG}" - docker push "${TAG}"
- docker tag "${TAG}" "${TAG_LATEST}" - docker tag "${TAG}" "${TAG_LATEST}"
- docker push "${TAG_LATEST}" - docker push "${TAG_LATEST}"
# TODO: create container tags for git tags automatically
after_script: after_script:
# Workaround for https://gitlab.com/gitlab-org/gitlab-foss/-/issues/40925 # Workaround for https://gitlab.com/gitlab-org/gitlab-foss/-/issues/40925
...@@ -75,37 +60,3 @@ x64-vs2022: ...@@ -75,37 +60,3 @@ x64-vs2022:
# TOOLSET: "v142" # 142: VS 2019 # TOOLSET: "v142" # 142: VS 2019
# TOOLSET: "v143" # 143: VS 2022 # 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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment