Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Motion Bank API
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Motion Bank
Services
Motion Bank API
Commits
215c4d4e
Commit
215c4d4e
authored
Oct 14, 2019
by
Anton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add circle config
parent
ff3a0c00
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
107 additions
and
0 deletions
+107
-0
.circleci/config.yml
.circleci/config.yml
+107
-0
No files found.
.circleci/config.yml
0 → 100644
View file @
215c4d4e
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
:
release_dev
:
working_directory
:
/app
docker
:
-
image
:
docker:stable-git
steps
:
-
checkout
-
run
:
*pull-submodules
-
setup_remote_docker
-
run
:
*install-dependencies
-
run
:
name
:
Release Dev Image
environment
:
IS_STAGING
:
true
API_HOST
:
https://api-dev.motionbank.org
command
:
|
set +o pipefail
AUTH0_CLIENT_ID=${DEV_AUTH0_CLIENT_ID} SENTRY_DSN=${DEV_SENTRY_DSN} npm run build
docker login -u ${DOCKER_USER} -p ${DOCKER_PASS}
docker build --no-cache -t motionbank/systems-frontend:dev .
docker push motionbank/systems-frontend:dev
release_production
:
working_directory
:
/app
docker
:
-
image
:
docker:stable-git
steps
:
-
checkout
-
run
:
*pull-submodules
-
setup_remote_docker
-
run
:
*install-dependencies
-
run
:
name
:
Release Production Image
command
:
|
set +o pipefail
AUTH0_CLIENT_ID=${PROD_AUTH0_CLIENT_ID} SENTRY_DSN=${PROD_SENTRY_DSN} npm run build
docker login -u ${DOCKER_USER} -p ${DOCKER_PASS}
docker build --no-cache -t motionbank/systems-frontend:${CIRCLE_BRANCH} .
docker push motionbank/systems-frontend:${CIRCLE_BRANCH}
release_staging
:
working_directory
:
/app
docker
:
-
image
:
docker:stable-git
steps
:
-
checkout
-
run
:
*pull-submodules
-
setup_remote_docker
-
run
:
*install-dependencies
-
run
:
name
:
Release Staging Image
environment
:
IS_STAGING
:
true
API_HOST
:
https://api-staging.motionbank.org
command
:
|
set +o pipefail
AUTH0_CLIENT_ID=${STAGING_AUTH0_CLIENT_ID} SENTRY_DSN=${STAGING_SENTRY_DSN} npm run build
docker login -u ${DOCKER_USER} -p ${DOCKER_PASS}
docker build --no-cache -t motionbank/systems-frontend:staging .
docker push motionbank/systems-frontend:staging
workflows
:
version
:
2
build_pipeline
:
jobs
:
-
release_dev
:
filters
:
branches
:
only
:
master
-
release_staging
:
filters
:
branches
:
only
:
staging
-
release_production
:
filters
:
branches
:
only
:
/^release_.+$/
nightly
:
triggers
:
-
schedule
:
cron
:
"
0
1
*
*
1"
filters
:
branches
:
only
:
-
master
jobs
:
-
release_dev
-
release_staging
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