Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Pages Test
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Operate
Environments
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitLab Tests
Pages Test
Commits
c166d487
Verified
Commit
c166d487
authored
2 years ago
by
Chris Coley
Browse files
Options
Downloads
Patches
Plain Diff
Add a link to the project repo
parent
ab6cc63d
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#636
passed
2 years ago
Stage: .pre
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+5
-2
5 additions, 2 deletions
.gitlab-ci.yml
src/index.html
+2
-1
2 additions, 1 deletion
src/index.html
with
7 additions
and
3 deletions
.gitlab-ci.yml
+
5
−
2
View file @
c166d487
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
src/index.html
+
2
−
1
View file @
c166d487
...
...
@@ -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>
...
...
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