Commit ff02f37c authored by Anton's avatar Anton

Add more circle ci jobs

parent c452e805
......@@ -41,6 +41,51 @@ jobs:
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
environment:
AUTH0_REDIRECT_URL: https://app.motionbank.org
UI_HOST: https://app.motionbank.org
API_HOST: https://api.motionbank.org
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:{{ .Branch }} .
docker push motionbank/systems-frontend:{{ .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:
AUTH0_REDIRECT_URL: https://staging.motionbank.org
IS_STAGING: true
UI_HOST: https://staging.motionbank.org
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:
......@@ -49,6 +94,14 @@ workflows:
filters:
branches:
only: master
- release_staging:
filters:
branches:
only: staging
- release_production:
filters:
branches:
only: /^release_.+$/
nightly:
triggers:
- schedule:
......@@ -59,3 +112,4 @@ workflows:
- master
jobs:
- release_dev
- release_staging
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