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 allow_failure: true only: refs: - gitlab_ci_setup_development # - schedules run_jekyll_production: stage: build before_script: - bundle install --jobs $(nproc) "${FLAGS[@]}" 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