During yesterday's outage there are confirmed reports that some comments in Issues or Merge Requests as well as Issues and Merge Requests themselves were not saved properly. We are currently investigating the cause and will take appropriate countermeasures. Please excuse the inconvenience.

Commit 886a78d6 authored by Hueser, Christian (FWCC) - 138593's avatar Hueser, Christian (FWCC) - 138593
Browse files

Added extensions to gitlab ci yaml file

There is only master brunch providing gitlab ci yaml file. All feature
branches get a copy and build agains latest dependencies. Master builds
against fixed dependencies. Also use yaml-extensions in gitlab ci yaml file
to achieve DRY .
parent b30a2b99
......@@ -5,13 +5,25 @@ stages:
- deploy
- after_deploy
.artifacts_extension:
artifacts:
paths:
- public
- team.yml
expire_in: 1d
.only_extension:
only:
refs:
- gitlab_ci_setup_production
before_script:
- gem install bundler jekyll --no-document
- bundle update --jobs $(nproc) "${FLAGS[@]}"
run_jekyll_latest_dependencies:
stage: build
script:
- bundle update --jobs $(nproc) "${FLAGS[@]}"
- bundle exec jekyll build -d public
allow_failure: true
......@@ -19,43 +31,29 @@ run_jekyll_production:
stage: build
script:
- cp _data/team.yml team.yml
- bundle install --jobs $(nproc) "${FLAGS[@]}"
- bundle exec jekyll build -d public
artifacts:
paths:
- public
- team.yml
expire_in: 1d
only:
refs:
- gitlab_ci_setup_production
extends:
- .artifacts_extension
- .only_extension
pages:
stage: deploy
script:
- echo "deploy"
artifacts:
paths:
- public
- team.yml
expire_in: 1d
extends:
- .artifacts_extension
- .only_extension
dependencies:
- run_jekyll_production
only:
refs:
- gitlab_ci_setup_production
team_map:
stage: after_deploy
script:
- "HEADERS=\'{\"token\":\"'\"${TOKEN_TRIGGER_GITLAB_CI_SETUP}\"'\", \"ref\":\"gitlab_ci_setup_production\"}\'; curl -X POST -H \"Private-Token: ${MY_PERSONAL_ACCESS_TOKEN_API}\" -H \"Content-Type: application/json\" -d \"$HEADERS\" https://gitlab.hzdr.de/api/v4/projects/960/trigger/pipeline"
artifacts:
paths:
- public
- team.yml
expire_in: 1d
extends:
- .artifacts_extension
- .only_extension
dependencies:
- pages
only:
refs:
- gitlab_ci_setup_production
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment