Skip to content
Snippets Groups Projects
Verified Commit c166d487 authored by Chris Coley's avatar Chris Coley
Browse files

Add a link to the project repo

parent ab6cc63d
Branches
No related tags found
No related merge requests found
Pipeline #636 passed
......@@ -38,8 +38,11 @@ setup:
- echo $ROOT_RELATIVE_NAMESPACE
- test "$ROOT_RELATIVE_NAMESPACE" == "${CI_PROJECT_NAMESPACE#$CI_PROJECT_ROOT_NAMESPACE}" || { echo "ROOT_RELATIVE_NAMESPACE is not set correctly" ; exit 1 ; }
script:
- sed -i "s/%%BRANCH%%/$CI_COMMIT_BRANCH/g" src/index.html
- sed -i "s/%%PROJECT%%/$CI_PROJECT_NAMESPACE/g" src/index.html
- sed -i
-e "s|%%BRANCH%%|${CI_COMMIT_BRANCH}|g"
-e "s|%%PROJECT_URL%%|${CI_PROJECT_URL}|g"
-e "s|%%PROJECT_NAMESPACE%%|${CI_PROJECT_NAMESPACE}|g"
src/index.html
- mv src public
artifacts:
paths:
......
......@@ -19,7 +19,8 @@
This is a simple plain-HTML website on GitLab Pages, without any fancy static site generator.
</p>
<p>
It was built on the <strong>%%BRANCH%%</strong> branch of the <strong>%%PROJECT%%</strong> project.
It was built on the <strong>%%BRANCH%%</strong> branch of the
<a href="%%PROJECT_URL%%"><strong>%%PROJECT_NAMESPACE%%</strong></a> project.
</p>
</body>
</html>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment