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

Update CI for docker

parent 22b48134
Branches
Tags v1.11.0
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
- prepare
......@@ -6,8 +6,9 @@ stages: # Define stages in the pipeline
- deploy
prepare:
image: docker:20.10.16
stage: build
stage: prepare
tags:
- docker
services:
- docker:20.10.16-dind
before_script:
......@@ -22,6 +23,13 @@ prepare:
# Job to build documentation
build-docs:
stage: build
dependencies:
- prepare
image:
name: $CI_REGISTRY_IMAGE:latest
entrypoint: [""]
tags:
- docker
script:
- sphinx-build docs/source docs/build # Build the documentation
artifacts:
......@@ -32,6 +40,13 @@ build-docs:
# Job to deploy documentation to GitLab Pages
pages:
stage: deploy
dependencies:
- prepare
image:
name: $CI_REGISTRY_IMAGE:latest
entrypoint: [""]
tags:
- docker
script:
- mv docs/build public # Move the build output to the "public" directory
artifacts:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment