Loading .gitlab-ci.yml +12 −16 Original line number Diff line number Diff line # The Docker image that will be used to build your app pages: stage: deploy image: python:3.9.18-slim-bullseye # Functions that should be executed before the build script is run variables: PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" PAGES_BRANCH: gl-pages HTTPS_REMOTE: https://gitlab-ci-token:${ACCESS_TOKEN}@${CI_SERVER_HOST}/rep/${CI_PROJECT_PATH}.git before_script: - pip install -q mkdocs-material mike - apt-get update -qq && apt-get -qq install -y git > /dev/null - git config --global --replace-all user.name $GITLAB_USER_NAME - git config --global --replace-all user.email $GITLAB_USER_EMAIL - git fetch origin $PAGES_BRANCH && git checkout $PAGES_BRANCH || git checkout -b $PAGES_BRANCH origin/$PAGES_BRANCH || echo "Pages branch not deployed yet." - git fetch origin $PAGES_BRANCH && git checkout $PAGES_BRANCH || git checkout -b $PAGES_BRANCH origin/$PAGES_BRANCH || echo "Pages branch not deployed yet." - git checkout $CI_COMMIT_SHA pages: variables: PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" PAGES_BRANCH: gl-pages HTTPS_REMOTE: https://gitlab-ci-token:${ACCESS_TOKEN}@${CI_SERVER_HOST}/rep/${CI_PROJECT_PATH}.git script: - | if [ -n "$CI_COMMIT_TAG" ]; then Loading @@ -26,8 +23,7 @@ pages: - git checkout $PAGES_BRANCH -- public/ artifacts: paths: # The folder that contains the files to be exposed at the Page URL - public - public/ rules: # This ensures that only pushes to the default branch will trigger # a pages deploy Loading Loading
.gitlab-ci.yml +12 −16 Original line number Diff line number Diff line # The Docker image that will be used to build your app pages: stage: deploy image: python:3.9.18-slim-bullseye # Functions that should be executed before the build script is run variables: PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" PAGES_BRANCH: gl-pages HTTPS_REMOTE: https://gitlab-ci-token:${ACCESS_TOKEN}@${CI_SERVER_HOST}/rep/${CI_PROJECT_PATH}.git before_script: - pip install -q mkdocs-material mike - apt-get update -qq && apt-get -qq install -y git > /dev/null - git config --global --replace-all user.name $GITLAB_USER_NAME - git config --global --replace-all user.email $GITLAB_USER_EMAIL - git fetch origin $PAGES_BRANCH && git checkout $PAGES_BRANCH || git checkout -b $PAGES_BRANCH origin/$PAGES_BRANCH || echo "Pages branch not deployed yet." - git fetch origin $PAGES_BRANCH && git checkout $PAGES_BRANCH || git checkout -b $PAGES_BRANCH origin/$PAGES_BRANCH || echo "Pages branch not deployed yet." - git checkout $CI_COMMIT_SHA pages: variables: PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" PAGES_BRANCH: gl-pages HTTPS_REMOTE: https://gitlab-ci-token:${ACCESS_TOKEN}@${CI_SERVER_HOST}/rep/${CI_PROJECT_PATH}.git script: - | if [ -n "$CI_COMMIT_TAG" ]; then Loading @@ -26,8 +23,7 @@ pages: - git checkout $PAGES_BRANCH -- public/ artifacts: paths: # The folder that contains the files to be exposed at the Page URL - public - public/ rules: # This ensures that only pushes to the default branch will trigger # a pages deploy Loading