Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Özgür Ozan Sen
ogs
Commits
668bb401
Verified
Commit
668bb401
authored
4 years ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
[ci] Added build web site job.
parent
593f53c0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/ci/jobs/web.yml
+17
-3
17 additions, 3 deletions
scripts/ci/jobs/web.yml
scripts/docker/Dockerfile.web
+12
-0
12 additions, 0 deletions
scripts/docker/Dockerfile.web
with
29 additions
and
3 deletions
scripts/ci/jobs/web.yml
+
17
−
3
View file @
668bb401
...
...
@@ -5,11 +5,8 @@ web url checker:
extends
:
-
.defaults
-
.rules-master-manual
image
:
name
:
$WEB_IMAGE
entrypoint
:
[
"
"
]
script
:
-
cd web
-
>
...
...
@@ -17,3 +14,20 @@ web url checker:
--white-listed-files releases/*
--white-listed-urls https://jenkins.opengeosys.org/job/ufz/job/ogs-container-maker/job/master/build,http://yourproxy.example.com,https://apt.kitware.com/ubuntu/,https://github.com/YOUR-USERNAME/ogs,https://jenkins.opengeosys.org/github-webhook/,http://localhost:1313,https://github.com/ufz/ogs/pull/\$1,http://www.opengeosys.org/images/xsd/OpenGeoSysXXX.xsd,https://\`-protocol
content
build web site
:
stage
:
build
image
:
$WEB_IMAGE
script
:
-
cd web
-
yarn
-
hugo
rules
:
-
changes
:
-
web/
artifacts
:
paths
:
-
web/public
cache
:
paths
:
-
web/node_modules
This diff is collapsed.
Click to expand it.
scripts/docker/Dockerfile.web
+
12
−
0
View file @
668bb401
FROM python:3-slim
RUN pip install urlchecker==0.0.20
CMD [ "/bin/bash" ]
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
--no-install-recommends curl git gnupg2 pandoc pandoc-citeproc && \
rm -rf /var/lib/apt/lists/*
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y yarn \
&& rm -rf /var/lib/apt/lists/*
ENV HUGO_VERSION=0.72.0
RUN curl -fSL -O "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.deb" \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y /hugo_extended_${HUGO_VERSION}_Linux-64bit.deb \
&& rm /hugo_extended_${HUGO_VERSION}_Linux-64bit.deb
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