Skip to content
Snippets Groups Projects
Commit 364f2467 authored by Jan Habscheid's avatar Jan Habscheid
Browse files

Update from main for figures

parent 3ac5a453
No related branches found
No related tags found
No related merge requests found
image: python:3.9 # Use a Python Docker image image: docker:20.10.16 # Define the Docker image
stages: # Define stages in the pipeline stages: # Define stages in the pipeline
- prepare
- build - build
- deploy - deploy
prepare:
stage: prepare
tags:
- docker
services:
- docker:20.10.16-dind
before_script:
- echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin
script:
- docker pull $CI_REGISTRY_IMAGE:latest || true
- docker build
--cache-from $CI_REGISTRY_IMAGE:latest
--tag $CI_REGISTRY_IMAGE:latest .
- docker push $CI_REGISTRY_IMAGE:latest
# Job to build documentation # Job to build documentation
build-docs: build-docs:
stage: build stage: build
dependencies:
- prepare
image:
name: $CI_REGISTRY_IMAGE:latest
entrypoint: [""]
tags:
- docker
script: script:
- sphinx-build docs/source docs/build # Build the documentation - sphinx-build docs/source docs/build # Build the documentation
artifacts: artifacts:
paths: paths:
- docs/build # Save the build output for later stages - docs/build # Save the build output for later stages
expire_in: 12 month # Optional: Set how long to keep the artifacts (default: 30 days) expire_in: 12 month # Optional: Set how long to keep the artifacts (default: 30 days)
# Job to deploy documentation to GitLab Pages # Job to deploy documentation to GitLab Pages
pages: pages:
stage: deploy stage: deploy
dependencies:
- prepare
image:
name: $CI_REGISTRY_IMAGE:latest
entrypoint: [""]
tags:
- docker
script: script:
- mv docs/build public # Move the build output to the "public" directory - mv docs/build public # Move the build output to the "public" directory
artifacts: artifacts:
paths: paths:
- public # Files in the "public" folder will be deployed to GitLab Pages - public # Files in the "public" folder will be deployed to GitLab Pages
only: only:
- main # Only deploy if the changes are in the default branch - main # Only deploy if the changes are in the default branch
\ No newline at end of file
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