Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
retribute.me
retribute.me
Commits
227595a5
Verified
Commit
227595a5
authored
Sep 09, 2019
by
Eliot Berriot
Browse files
CI setup
parent
8947c0ac
Pipeline
#5302
passed with stage
in 2 minutes and 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
227595a5
stages
:
-
review
-
build
review
:
stage
:
review
image
:
buildkite/puppeteer
variables
:
GIT_STRATEGY
:
clone
VUE_APP_ROUTER_BASE_URL
:
/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/review/
before_script
:
-
apt-get update && apt-get install -y jq
-
yarn install
script
:
-
yarn lint
-
yarn i18n-compile
-
yarn build
-
rm -rf review
-
mv dist review
cache
:
key
:
front_node_modules
paths
:
-
"
node_modules"
artifacts
:
expire_in
:
2 weeks
paths
:
-
review
only
:
-
branches
except
:
-
master@retribute.me/retribute.me
tags
:
-
docker
environment
:
name
:
review/front/$CI_COMMIT_REF_NAME
url
:
http://$CI_PROJECT_NAMESPACE.pages.funkwhale.audio/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/review/index.html
pages
:
stage
:
build
image
:
buildkite/puppeteer
variables
:
GIT_STRATEGY
:
clone
before_script
:
-
apt-get update && apt-get install -y jq
-
yarn install
script
:
-
yarn lint
-
yarn i18n-compile
-
yarn build
-
rm -rf public
-
mv dist public
# ugly hack from https://gitlab.com/gitlab-org/gitlab-pages/issues/23#note_57499396
# until Gitlab Pages has better support for SPA
-
cp public/index.html public/404.html
# Gzip compression, cf https://webd97.de/post/gitlab-pages-compression/
-
gzip -k -6 $(find public -type f)
cache
:
key
:
front_node_modules
paths
:
-
"
node_modules"
artifacts
:
paths
:
-
public/
only
:
-
master@retribute.me/retribute.me
tags
:
-
docker
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment