Skip to content

Commit

Permalink
[skip ci] New CircleCI config
Browse files Browse the repository at this point in the history
  • Loading branch information
comzeradd committed Feb 22, 2021
1 parent 64c651c commit e6e3c77
Showing 1 changed file with 9 additions and 26 deletions.
35 changes: 9 additions & 26 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,6 @@ job_definitions:
- run: make persist
- run: make build
- run: make push
- run:
name: Notify failure
when: on_fail
command: TYPE="Build" notify-job-failure.sh
- save_cache:
key: composer-v5-{{ .Branch }}-{{ .Revision }}-{{ .BuildNum }}
paths:
Expand Down Expand Up @@ -344,16 +340,6 @@ jobs:
<<: *release_environment
<<: *deploy_steps

merge-develop:
<<: *defaults
environment:
<<: *common_environment
<<: *develop_environment
working_directory: /tmp/workspace/src
steps:
- checkout
- run: merge-develop.sh

finish-staging:
<<: *defaults
environment:
Expand Down Expand Up @@ -405,9 +391,9 @@ jobs:
- run:
name: Configure
command: |
${HOME}/scripts/activate-gcloud-account.sh
activate-gcloud-account.sh
- run: echo $SQLPROXY_KEY | base64 -d > key.json
- run: /home/circleci/sql_create_sync_file.sh
- run: sql_create_sync_file.sh

sync-to-staging:
<<: *defaults
Expand All @@ -422,9 +408,9 @@ jobs:
- run:
name: Configure
command: |
${HOME}/scripts/activate-gcloud-account.sh
activate-gcloud-account.sh
- run: echo $SQLPROXY_KEY | base64 -d > key.json
- run: /home/circleci/sql_to_sync_site.sh release
- run: sql_to_sync_site.sh release

sync-to-develop:
<<: *defaults
Expand All @@ -439,9 +425,9 @@ jobs:
- run:
name: Configure
command: |
${HOME}/scripts/activate-gcloud-account.sh
activate-gcloud-account.sh
- run: echo $SQLPROXY_KEY | base64 -d > key.json
- run: /home/circleci/sql_to_sync_site.sh develop
- run: sql_to_sync_site.sh develop

notify-sync:
<<: *defaults
Expand All @@ -452,7 +438,7 @@ jobs:
steps:
- checkout
- run: activate-gcloud-account.sh
- run: /home/circleci/notify-sync-admins.sh
- run: notify-sync-admins.sh

backup:
docker:
Expand All @@ -474,7 +460,7 @@ workflow_definitions:
context: org-global
filters:
branches:
only: develop
only: main
on_release_tag: &on_release_tag
context: org-global
filters:
Expand All @@ -495,7 +481,6 @@ workflows:
requires:
- build-develop
- visualtests-reference-develop
- merge-develop
- test-develop:
<<: *on_develop_commit
requires:
Expand All @@ -504,9 +489,7 @@ workflows:
<<: *on_develop_commit
requires:
- deploy-develop
- merge-develop:
<<: *on_develop_commit
release:
production:
unless: << pipeline.parameters.rollback >>
jobs:
- visualtests-reference:
Expand Down

0 comments on commit e6e3c77

Please sign in to comment.