Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hpc-compendium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZIH
hpcsupport
hpc-compendium
Commits
3a65f701
Commit
3a65f701
authored
3 years ago
by
bikerdanny
Browse files
Options
Downloads
Patches
Plain Diff
Added cleanup stage and added test network to linkchecker
parent
97718e87
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+7
-1
7 additions, 1 deletion
.gitlab-ci.yml
with
7 additions
and
1 deletion
.gitlab-ci.yml
+
7
−
1
View file @
3a65f701
...
...
@@ -10,6 +10,7 @@ variables:
stages
:
-
build
-
test
-
cleanup
build_base
:
stage
:
build
...
...
@@ -36,6 +37,11 @@ test_linkchecker:
script
:
-
docker network create ${TEST_NETWORK}
-
docker run -d --rm --name ${TEST_CONTAINER_NAME} --network ${TEST_NETWORK} ${BASE_IMAGE} mkdocs serve --dev-addr 0.0.0.0:8000
-
docker run --rm ${LINKCHECKER_IMAGE} --check-extern --ignore-url=http://0.0.0.0:8000 http://webpage:8000
-
docker run --rm --network ${TEST_NETWORK} ${LINKCHECKER_IMAGE} --check-extern --ignore-url=http://0.0.0.0:8000 http://webpage:8000
cleanup_test
:
stage
:
cleanup
script
:
-
docker stop ${TEST_CONTAINER_NAME}
-
docker network rm ${TEST_NETWORK}
when
:
always
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment