Commit c452e805 authored by Anton's avatar Anton

Refactor circle config

parent ac1e50f6
Pipeline #16097 passed with stage
in 1 minute and 29 seconds
aliases:
- &pull-submodules
name: Pull Submodules
command: |
ssh-keyscan gitlab.rlp.net >> ~/.ssh/known_hosts
git submodule init
git submodule update
- &install-dependencies
name: Install dependencies
command: |
apk add --update --no-cache nodejs nodejs-npm python make g++ pkgconfig libsecret-dev
npm config set unsafe-perm true
npm i -g npm
node --version
npm --version
npm i -g @quasar/cli
npm install
version: 2
jobs:
build_dev:
release_dev:
working_directory: /app
docker:
- image: docker:stable-git
steps:
- checkout
- run:
name: "Pull Submodules"
command: |
ssh-keyscan gitlab.rlp.net >> ~/.ssh/known_hosts
git submodule init
git submodule update
- run: *pull-submodules
- setup_remote_docker
- run: *install-dependencies
- run:
name: Install dependencies
command: |
apk add --update --no-cache nodejs nodejs-npm python make g++ pkgconfig libsecret-dev
npm config set unsafe-perm true
npm i -g npm
node --version
npm --version
npm i -g @quasar/cli
- run:
name: Build Dev Image
name: Release Dev Image
environment:
AUTH0_REDIRECT_URL: https://dev.motionbank.org
UI_HOST: https://dev.motionbank.org
......@@ -31,20 +36,16 @@ jobs:
API_HOST: https://api-dev.motionbank.org
command: |
set +o pipefail
npm install
AUTH0_CLIENT_ID=${DEV_AUTH0_CLIENT_ID} SENTRY_DSN=${DEV_SENTRY_DSN} npm run build
docker build --no-cache -t motionbank/systems-frontend:dev .
- run:
name: Push Docker Image
command: |
docker login -u ${DOCKER_USER} -p ${DOCKER_PASS}
docker build --no-cache -t motionbank/systems-frontend:dev .
docker push motionbank/systems-frontend:dev
workflows:
version: 2
build_pipeline:
jobs:
- build_dev:
- release_dev:
filters:
branches:
only: master
......@@ -57,4 +58,4 @@ workflows:
only:
- master
jobs:
- build_dev
- release_dev
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