Skip to content
Snippets Groups Projects
Commit 2d86e9d6 authored by chrissi^'s avatar chrissi^
Browse files

Move to gitlab pages

parent f5c58899
Branches 1-inhalte-erstellen-basisinformation
No related tags found
1 merge request!14Chrissi/pages
deployment:
image: $CI_REGISTRY/chrissi/container-flamingo:latest
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .cache/pip
before_script:
- python -V # Print out python version for debugging
pages:
stage: deploy
only:
- /^testbed*$/i
- /^master*$/i
rules:
# This ensures that only pushes to the default branch will trigger
# a pages deploy
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
script:
- echo $CI_COMMIT_REF_SLUG > REF_SLUG
- make html
- touch /var/www/hackenopenair.de/$CI_COMMIT_REF_SLUG/htdocs/foo
- rm -r /var/www/hackenopenair.de/$CI_COMMIT_REF_SLUG/htdocs/*
- cp -r output/* /var/www/hackenopenair.de/$CI_COMMIT_REF_SLUG/htdocs/
- chmod go+r -R /var/www/hackenopenair.de/$CI_COMMIT_REF_SLUG/htdocs/*
- echo $CI_COMMIT_REF_SLUG > REF_SLUG
- make env
- source env/bin/activate && pip list
- make html
- mv output/ public/
artifacts:
paths:
- public
test:
stage: test
rules:
# This ensures that only pushes to the default branch will trigger
# a pages deploy
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
script:
- echo $CI_COMMIT_REF_SLUG > REF_SLUG
- make env
- source env/bin/activate && pip list
- make html
- mv output/ public/
artifacts:
paths:
- public
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment