Commit 5220b257 authored by Hueser, Christian (FWCC) - 138593's avatar Hueser, Christian (FWCC) - 138593 Committed by Hueser, Christian (FWCC) - 138593
Browse files

created gitlab ci yaml file.

parent 3a15e038
image: ruby:2.6.4
stages:
- build
- deploy
- after_deploy
before_script:
- gem install bundler jekyll --no-document
run_jekyll_latest_dependencies:
stage: build
before_script:
- bundle update --jobs $(nproc) "${FLAGS[@]}"
script:
- bundle exec jekyll build -d public
artifacts:
paths:
- public
expire_in: 1d
only:
refs:
- gitlab_ci_setup_development
run_jekyll_production:
stage: build
before_script:
- bundle install --jobs $(nproc) "${FLAGS[@]}"
script:
script:
- cp _data/team.yml team.yml
- bundle exec jekyll build -d public
artifacts:
paths:
- public
- team.yml
expire_in: 1d
only:
refs:
- gitlab_ci_setup_production
pages:
stage: deploy
script:
- echo "deploy"
artifacts:
paths:
- public
- team.yml
expire_in: 1d
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
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