Commit 72c4d3de authored by anton's avatar anton

Update circle.ci config.yml

parent 137c0745
Pipeline #51900 passed with stage
in 4 minutes and 14 seconds
...@@ -29,15 +29,11 @@ jobs: ...@@ -29,15 +29,11 @@ jobs:
- run: *install-dependencies - run: *install-dependencies
- run: - run:
name: Release Dev Image name: Release Dev Image
environment:
IS_STAGING: true
API_HOST: https://api-dev.motionbank.org
command: | command: |
set +o pipefail 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 login -u ${DOCKER_USER} -p ${DOCKER_PASS}
docker build --no-cache -t motionbank/systems-frontend:dev . npm run lint
docker push motionbank/systems-frontend:dev npm run docker-release-dev
release_production: release_production:
working_directory: /app working_directory: /app
...@@ -52,12 +48,11 @@ jobs: ...@@ -52,12 +48,11 @@ jobs:
name: Release Production Image name: Release Production Image
command: | command: |
set +o pipefail 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 login -u ${DOCKER_USER} -p ${DOCKER_PASS}
docker build --no-cache -t motionbank/systems-frontend:${CIRCLE_BRANCH} . docker build --no-cache -t motionbank/systems-frontend:${CIRCLE_BRANCH} .
docker push motionbank/systems-frontend:${CIRCLE_BRANCH} docker push motionbank/systems-frontend:${CIRCLE_BRANCH}
release_staging: release_legacy:
working_directory: /app working_directory: /app
docker: docker:
- image: docker:stable-git - image: docker:stable-git
...@@ -67,16 +62,12 @@ jobs: ...@@ -67,16 +62,12 @@ jobs:
- setup_remote_docker - setup_remote_docker
- run: *install-dependencies - run: *install-dependencies
- run: - run:
name: Release Staging Image name: Release Production Image
environment:
IS_STAGING: true
API_HOST: https://api-staging.motionbank.org
command: | command: |
set +o pipefail 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 login -u ${DOCKER_USER} -p ${DOCKER_PASS}
docker build --no-cache -t motionbank/systems-frontend:staging . docker build --no-cache -t motionbank/systems-frontend:${CIRCLE_BRANCH} .
docker push motionbank/systems-frontend:staging docker push motionbank/systems-frontend:${CIRCLE_BRANCH}
workflows: workflows:
version: 2 version: 2
...@@ -86,22 +77,11 @@ workflows: ...@@ -86,22 +77,11 @@ workflows:
filters: filters:
branches: branches:
only: master only: master
- release_staging:
filters:
branches:
only: staging
- release_production: - release_production:
filters: filters:
branches: branches:
only: /^release_.+$/ only: /^release_2_.+$/
nightly: - release_legacy:
triggers:
- schedule:
cron: "0 1 * * 1"
filters: filters:
branches: branches:
only: only: /^release_1_.+$/
- 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