Commit 6ea7a390 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Merge branch 'p/mddocs-ci' into 'master'

ci: add trigger job

See merge request allpix-squared/allpix-squared!778
parents 1fb4cddd 2d35a9fe
Loading
Loading
Loading
Loading
+16 −29
Original line number Diff line number Diff line
@@ -433,35 +433,35 @@ perf:cc7-gcc:
    tags:
        - docker
    before_script:
        - mkdir -p public
        - mkdir -p result
        - mkdir build && cd build
    artifacts:
        paths:
            - public
            - result
        expire_in: 24 hour

# Compile Doxygen reference
cmp:doxygen:
docs:doxygen:
    extends: .doc
    image: gitlab-registry.cern.ch/sft/docker/centos7:latest
    script:
        - source ../.ci/init_x86_64.sh
        - cmake -GNinja -DBUILD_DOCS_ONLY=ON ..
        - ninja apsq_docs_reference
        - mv doc/reference/html ../public/reference
        - mv doc/reference/html ../result/reference

# Create file tree for hugo
cmp:usermanual-hugo:
docs:usermanual-hugo:
    extends: .doc
    image: gitlab-registry.cern.ch/sft/docker/centos7:latest
    script:
        - source ../.ci/init_x86_64.sh
        - cmake -GNinja -DBUILD_DOCS_ONLY=ON ..
        - ninja apsq_docs_hugo
        - mv doc/usermanual_hugo ../public/usermanual_hugo
        - mv doc/usermanual_hugo ../result/usermanual_hugo

# Compile LaTeX user manual:
cmp:usermanual-pdf:
docs:usermanual-pdf:
    extends: .doc
    image: thomasweise/docker-texlive-full:latest
    script:
@@ -469,7 +469,7 @@ cmp:usermanual-pdf:
        - pandoc --version
        - cmake -GNinja -DBUILD_DOCS_ONLY=ON ..
        - ninja apsq_docs_pdf
        - mv doc/usermanual_pdf/allpix-manual.pdf ../public/usermanual_pdf
        - mv doc/usermanual_pdf/allpix-manual.pdf ../result/allpix-manual.pdf


################################
@@ -536,28 +536,15 @@ pkg:macos-clang:

# Automatically deploy documentation to the website
# Deployment job only executed for new tag pushs, not for every commit.
deploy-documentation:
deploy:documentation:
    stage: deployment
    tags:
      - docker
    variables:
        GIT_STRATEGY: none
    # Only run for new tags:
    only:
        - tags@allpix-squared/allpix-squared
    dependencies:
        - cmp:usermanual-hugo
        - cmp:usermanual-pdf
        - cmp:doxygen
    # Docker image with tools to deploy to EOS
    image: gitlab-registry.cern.ch/ci-tools/ci-web-deployer:latest
    script:
        - deploy-eos
    # do not run any globally defined before_script or after_script for this step
    before_script: []
    after_script: []
    trigger:
        project: allpix-squared/allpix-squared-website
        strategy: depend

deploy-eos:
deploy:eos:
    stage: deployment
    tags:
      - docker
@@ -580,7 +567,7 @@ deploy-eos:
    before_script: []
    after_script: []

deploy-cvmfs:
deploy:cvmfs:
    stage: deployment
    dependencies:
        - pkg:cc7-gcc
@@ -611,7 +598,7 @@ deploy-cvmfs:
        - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/$DOCKER_FILE --destination $IMAGE_DESTINATION --build-arg ALLPIX_BUILD_ENV="$ALLPIX_BUILD_ENV"
        - echo "Image pushed successfully to ${IMAGE_DESTINATION}"

deploy-docker-latest:
deploy:docker-latest:
    extends: .deploy-docker
    variables:
        IMAGE_DESTINATION: ${CI_REGISTRY_IMAGE}:latest
@@ -619,7 +606,7 @@ deploy-docker-latest:
    only:
        - schedules@allpix-squared/allpix-squared

deploy-docker-tag:
deploy:docker-tag:
    extends: .deploy-docker
    variables:
        IMAGE_DESTINATION: ${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}