mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Add the doxygen dockerfile
This commit is contained in:
parent
12abcd6ece
commit
1a161858fc
@ -43,3 +43,4 @@ include:
|
|||||||
- local: '/.gitlab/Windows-CI.yml'
|
- local: '/.gitlab/Windows-CI.yml'
|
||||||
- local: '/.gitlab/coverity.yml'
|
- local: '/.gitlab/coverity.yml'
|
||||||
- local: '/.gitlab/linux-metadata-validate.yml'
|
- local: '/.gitlab/linux-metadata-validate.yml'
|
||||||
|
- local: '/.gitlab/doxygen.yml'
|
||||||
|
18
.gitlab/doxygen.yml
Normal file
18
.gitlab/doxygen.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
build_doxygen_docker:
|
||||||
|
image: docker:stable
|
||||||
|
services:
|
||||||
|
- docker:dind
|
||||||
|
stage: build
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
before_script:
|
||||||
|
- docker info
|
||||||
|
- docker login -u gitlab-ci-token -p "$CI_BUILD_TOKEN" "$CI_REGISTRY"
|
||||||
|
script:
|
||||||
|
- docker build -t "${CI_REGISTRY_IMAGE}/doxygen:$CI_COMMIT_BRANCH" -f ./Documentation/doxygen.Dockerfile .
|
||||||
|
- docker push "${CI_REGISTRY_IMAGE}/doxygen:$CI_COMMIT_BRANCH"
|
||||||
|
only:
|
||||||
|
refs:
|
||||||
|
- schedules
|
||||||
|
variables:
|
||||||
|
- $SCHEDULED_JOB_NAME == "doxygen"
|
23
Documentation/doxygen.Dockerfile
Normal file
23
Documentation/doxygen.Dockerfile
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
FROM registry.gitlab.com/kicad/kicad-ci/source_containers/master/ubuntu:22.04 as build-doxygen-env
|
||||||
|
USER root
|
||||||
|
|
||||||
|
WORKDIR /src
|
||||||
|
COPY . ./
|
||||||
|
|
||||||
|
RUN ls
|
||||||
|
RUN mkdir build && cd build
|
||||||
|
|
||||||
|
WORKDIR /src/build
|
||||||
|
|
||||||
|
RUN cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
|
-DKICAD_USE_OCC=ON \
|
||||||
|
-DKICAD_SCRIPTING_WXPYTHON=ON \
|
||||||
|
-DKICAD_SPICE=ON
|
||||||
|
RUN make doxygen-docs
|
||||||
|
RUN make doxygen-python
|
||||||
|
|
||||||
|
|
||||||
|
FROM scratch as output-image
|
||||||
|
|
||||||
|
COPY --from=build-doxygen-env /src/doxygen/out/html /doxygen-docs_html
|
||||||
|
COPY --from=build-doxygen-env /src/build/pcbnew/doxygen-python/html /doxygen-python_html
|
6
Documentation/doxygen.Dockerfile.dockerignore
Normal file
6
Documentation/doxygen.Dockerfile.dockerignore
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
doxygen.Dockerfile.dockerignore.git
|
||||||
|
.gitlab
|
||||||
|
.github
|
||||||
|
.idea
|
||||||
|
.vs
|
||||||
|
build
|
Loading…
x
Reference in New Issue
Block a user