Commit d1a0f2b6 authored by Andreas Böttger's avatar Andreas Böttger 😬
Browse files

Update .gitlab-ci.yml

parent ba25b817
Pipeline #34631 failed
......@@ -4,7 +4,7 @@ variables:
CONTAINER_RELEASE_IMAGE: ${CONTAINER_REGISTRY}/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}:latest
BASE_IMAGE: ${CONTAINER_REGISTRY}/itbh/hopon/hopon-docker
DOCKER_FILE_PATH: .
.before_script_template:
before_script: &before_script_definition
- cp ./docker/docker-compose.reviews ./docker/docker-compose.yml
......@@ -212,6 +212,13 @@ start_review:
- docker-compose -p ${CI_PROJECT_PATH_SLUG}-${CI_ENVIRONMENT_SLUG} -f ./docker/docker-compose.yml build --no-cache --force-rm
- docker-compose -p ${CI_PROJECT_PATH_SLUG}-${CI_ENVIRONMENT_SLUG} -f ./docker/docker-compose.yml down
- docker-compose -p ${CI_PROJECT_PATH_SLUG}-${CI_ENVIRONMENT_SLUG} -f ./docker/docker-compose.yml up -d
- mkdir -p ./_linkchecker
- echo "https://${CI_PROJECT_ID}-${CI_ENVIRONMENT_SLUG}.hpn.rz.tuhh.de/" >./_linkchecker/url
artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
expire_in: 1 week
paths:
- ./_linkchecker
environment:
name: ${CI_COMMIT_REF_NAME}
url: https://${CI_PROJECT_ID}-${CI_ENVIRONMENT_SLUG}.hpn.rz.tuhh.de/
......@@ -265,4 +272,30 @@ deploy_live:
url: https://hopon-newcomers.com
only:
- master
when: manual
\ No newline at end of file
when: manual
linkchecker:intern:
stage: linkchecker
except:
- master
when: manual
image:
name: linkchecker/linkchecker
entrypoint: [""]
script:
- echo "PLEASE be patient, the application may take a few minutes before it is available."
- cat ./_linkchecker/url
- linkchecker --recursion-level 10 --threads 10 --no-status --no-robots --no-warnings --ignore-url 'https://fonts.gstatic.com/{0,1}$' $(cat ./_linkchecker/url)
linkchecker:all:
stage: linkchecker
except:
- master
when: manual
image:
name: linkchecker/linkchecker
entrypoint: [""]
script:
- echo "PLEASE be patient, the application may take a few minutes before it is available."
- cat ./_linkchecker/url
- linkchecker --recursion-level 10 --threads 10 --no-status --no-robots --no-warnings --check-extern --ignore-url 'https://fonts.gstatic.com/{0,1}$' $(cat ./_linkchecker/url)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment