Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Computer Resources
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
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
IMGW
Computer Resources
Commits
78b63cd1
Commit
78b63cd1
authored
2 years ago
by
Michael Blaschek
Browse files
Options
Downloads
Patches
Plain Diff
added cache to jobs, build
parent
e4f92f69
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+20
-2
20 additions, 2 deletions
.gitlab-ci.yml
with
20 additions
and
2 deletions
.gitlab-ci.yml
+
20
−
2
View file @
78b63cd1
#image: localhost:5000/mkdocs-imgw
image
:
python:3.9-buster
# Install all required packages
variables
:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
# Cache between jobs in the same branch
cache
:
-
key
:
$CI_COMMIT_REF_SLUG
-
paths
:
-
.cache/pip
stages
:
-
build
...
...
@@ -9,9 +16,12 @@ stages:
build
:
rules
:
# only run pipeline when build is in the commit message
-
if
:
$CI_COMMIT_MESSAGE =~ /.*build.*/
stage
:
build
before_script
:
# Install all required packages
-
pip install -r requirements.txt
script
:
# --strict is too strict :)
...
...
@@ -19,6 +29,10 @@ build:
artifacts
:
paths
:
-
mkdocs.log
cache
:
key
:
build-cache
paths
:
-
site/
deploy
:
stage
:
deploy
...
...
@@ -28,3 +42,7 @@ deploy:
-
apt-get update -qq && apt-get install -y -qq sshpass openssh-client
script
:
-
sshpass -p "$WOLKE_PASSWORD" scp -oStrictHostKeyChecking=no -r ./site/ $WOLKE_USER@wolke.img.univie.ac.at:/var/www/html/documentation/general/
cache
:
key
:
build-cache
paths
:
-
site/
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