Commit 6897fc88 authored by Mark Harding's avatar Mark Harding

(feat): use artifacts vs cache

parent 0de73644
Pipeline #69176925 passed with stages
in 29 minutes and 58 seconds
......@@ -9,13 +9,6 @@ stages:
- prepare
- deploy
cache:
key: "$CI_COMMIT_REF_SLUG"
paths:
- dist/en
- dist/vi
policy: pull
test:
image: circleci/node:8-browsers
stage: test
......@@ -31,11 +24,10 @@ build:review:
- npm install -g gulp-cli
- gulp build.sass && gulp build.sass ##weird build needs to be run twice for now
- sh build/base-locale.sh dist
cache:
key: "$CI_COMMIT_REF_SLUG"
artifacts:
name: "$CI_COMMIT_REF_SLUG"
paths:
- dist
policy: push
except:
refs:
- master
......@@ -49,11 +41,10 @@ build:production:en:
- npm install -g gulp-cli
- gulp build.sass --deploy-url=https://cdn-assets.minds.com/front/dist/en && gulp build.sass --deploy-url=https://cdn-assets.minds.com/front/dist/en ##weird build needs to be run twice for now
- sh build/base-locale.sh dist https://cdn-assets.minds.com/front/dist
cache:
key: "$CI_COMMIT_REF_SLUG"
artifacts:
name: "$CI_COMMIT_REF_SLUG"
paths:
- dist/en
policy: push
only:
refs:
- master
......@@ -67,11 +58,10 @@ build:production:i18n:
- npm install -g gulp-cli
- gulp build.sass --deploy-url=https://cdn-assets.minds.com/front/dist/en && gulp build.sass --deploy-url=https://cdn-assets.minds.com/front/dist/en ##weird build needs to be run twice for now
- sh build/i18n-locales-all.sh dist https://cdn-assets.minds.com/front/dist
cache:
key: "$CI_COMMIT_REF_SLUG"
artifacts:
name: "$CI_COMMIT_REF_SLUG"
paths:
- dist/vi
policy: push
only:
refs:
- master
......@@ -84,6 +74,8 @@ prepare:
- docker login -u gitlab-ci-token -p ${CI_BUILD_TOKEN} ${CI_REGISTRY}
- docker build -t $CI_REGISTRY_IMAGE/front-init:$CI_BUILD_REF -f containers/front-init/Dockerfile dist/.
- docker push $CI_REGISTRY_IMAGE/front-init:$CI_BUILD_REF
dependencies:
- build:review
except:
refs:
- master
......@@ -143,5 +135,8 @@ deploy:production:
refs:
- master
- test/gitlab-ci
dependencies:
- build:production:en
- build:production:i18n
environment:
name: production
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment