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:
- 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
npm run lint
npm run docker-release-dev
release_production:
working_directory: /app
......@@ -52,12 +48,11 @@ jobs:
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:
release_legacy:
working_directory: /app
docker:
- image: docker:stable-git
......@@ -67,16 +62,12 @@ jobs:
- setup_remote_docker
- run: *install-dependencies
- run:
name: Release Staging Image
environment:
IS_STAGING: true
API_HOST: https://api-staging.motionbank.org
name: Release Production Image
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
docker build --no-cache -t motionbank/systems-frontend:${CIRCLE_BRANCH} .
docker push motionbank/systems-frontend:${CIRCLE_BRANCH}
workflows:
version: 2
......@@ -86,22 +77,11 @@ workflows:
filters:
branches:
only: master
- release_staging:
filters:
branches:
only: staging
- release_production:
filters:
branches:
only: /^release_.+$/
nightly:
triggers:
- schedule:
cron: "0 1 * * 1"
only: /^release_2_.+$/
- release_legacy:
filters:
branches:
only:
- master
jobs:
- release_dev
- release_staging
only: /^release_1_.+$/
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