Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Website
poul.org
Commits
96a96d56
Verified
Commit
96a96d56
authored
Sep 26, 2019
by
Davide Depau
Browse files
Move stuff to workdir so GitLab will cache it
parent
bbe293c1
Pipeline
#101
failed with stage
in 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
96a96d56
...
...
@@ -9,6 +9,8 @@ variables:
GIT_SUBMODULE_STRATEGY
:
recursive
before_script
:
-
mv usr-local-bundle /usr/local/bundle
# Move extracted cache to its
-
mv home-bundle ~/.bundle
# original place
-
apk add npm
-
npm install
-
bundle install
...
...
@@ -16,6 +18,8 @@ before_script:
-
jekyll build -d public
-
./scripts/purgecss.sh public
-
./scripts/minifycssjs.sh public
-
mv /usr/local/bundle usr-local-bundle
# Move cache to workdir so
-
mv ~/.bundle home-bundle
# that GitLab will pick it up
deploy-prod
:
stage
:
deploy
...
...
@@ -29,9 +33,9 @@ deploy-prod:
cache
:
key
:
build-deps
paths
:
-
"
/
usr
/
local
/
bundle/"
-
"
usr
-
local
-
bundle/"
-
"
node_modules/"
-
"
$HOME/.
bundle"
-
"
home-
bundle"
only
:
-
master
...
...
@@ -45,8 +49,8 @@ pages:
cache
:
key
:
build-deps
paths
:
-
"
/
usr
/
local
/
bundle/"
-
"
usr
-
local
-
bundle/"
-
"
node_modules/"
-
"
$HOME/.
bundle"
-
"
home-
bundle"
only
:
-
develop
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment