Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORE-201 Shut down Community App - Beta,Staging,Test & QA envs #6957

Merged
merged 11 commits into from
Jan 19, 2024
154 changes: 78 additions & 76 deletions .circleci/config.yml
kkartunov marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -132,65 +132,69 @@ jobs:
./master_deploy.sh -d ECS -e QA -t latest -s qa_communityapp_taskvar -i communityapp

# Build & Deploy against prod api backend
"build-prod-beta":
<<: *defaults
steps:
# Initialization.
- checkout
- setup_remote_docker
- run: *install_dependency
- run: *install_deploysuite
# Restoration of node_modules from cache.
- restore_cache: *restore_cache_settings_for_build
- run:
name: "configuring environment"
command: |
./awsconfiguration.sh PROD
./buildenv.sh -e PROD -b beta_communityapp_buildvar,beta_communityapp_deployvar -l prod_communityapp_buildvar_ps
# Build of Docker image.
- run: *build_docker_image
# Caching node modules.
- save_cache: *save_cache_settings
# Deployment.
- deploy:
name: Running MasterScript
command: |
source awsenvconf
source buildenvvar
./master_deploy.sh -d ECS -e PROD -t latest -s beta_communityapp_taskvar, -i communityapp
# Deprecate this workflow due to beta env shutdown
# https://topcoder.atlassian.net/browse/CORE-201
# "build-prod-beta":
# <<: *defaults
# steps:
# # Initialization.
# - checkout
# - setup_remote_docker
# - run: *install_dependency
# - run: *install_deploysuite
# # Restoration of node_modules from cache.
# - restore_cache: *restore_cache_settings_for_build
# - run:
# name: "configuring environment"
# command: |
# ./awsconfiguration.sh PROD
# ./buildenv.sh -e PROD -b beta_communityapp_buildvar,beta_communityapp_deployvar -l prod_communityapp_buildvar_ps
# # Build of Docker image.
# - run: *build_docker_image
# # Caching node modules.
# - save_cache: *save_cache_settings
# # Deployment.
# - deploy:
# name: Running MasterScript
# command: |
# source awsenvconf
# source buildenvvar
# ./master_deploy.sh -d ECS -e PROD -t latest -s beta_communityapp_taskvar, -i communityapp

# Build & Deploy against prod api backend
"build-prod-staging":
<<: *defaults
steps:
# Initialization.
- checkout
- setup_remote_docker
- run: *install_dependency
- run: *install_deploysuite
# Restoration of node_modules from cache.
- restore_cache: *restore_cache_settings_for_build
- run:
name: "configuring environment"
command: |
./awsconfiguration.sh PROD
./buildenv.sh -e PROD -b staging_communityapp_buildvar,staging_communityapp_deployvar -l prod_communityapp_buildvar_ps
# Build of Docker image.
- run: *build_docker_image
# Caching node modules.
- save_cache: *save_cache_settings
# Deployment.
- deploy:
name: Running MasterScript
command: |
source awsenvconf
source buildenvvar
./master_deploy.sh -d ECS -e PROD -t latest -s staging_communityapp_taskvar, -i communityapp
curl --request POST \
--url https://circleci.com/api/v2/project/github/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/pipeline \
--header "Circle-Token: ${CIRCLE_TOKEN}" \
--header 'content-type: application/json' \
--data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_smoketesting":true , "run_performancetesting":false, "run_basedeployment": false}}'
# Deprecate this workflow due to beta env shutdown
# https://topcoder.atlassian.net/browse/CORE-202
# "build-prod-staging":
# <<: *defaults
# steps:
# # Initialization.
# - checkout
# - setup_remote_docker
# - run: *install_dependency
# - run: *install_deploysuite
# # Restoration of node_modules from cache.
# - restore_cache: *restore_cache_settings_for_build
# - run:
# name: "configuring environment"
# command: |
# ./awsconfiguration.sh PROD
# ./buildenv.sh -e PROD -b staging_communityapp_buildvar,staging_communityapp_deployvar -l prod_communityapp_buildvar_ps
# # Build of Docker image.
# - run: *build_docker_image
# # Caching node modules.
# - save_cache: *save_cache_settings
# # Deployment.
# - deploy:
# name: Running MasterScript
# command: |
# source awsenvconf
# source buildenvvar
# ./master_deploy.sh -d ECS -e PROD -t latest -s staging_communityapp_taskvar, -i communityapp
# curl --request POST \
# --url https://circleci.com/api/v2/project/github/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/pipeline \
# --header "Circle-Token: ${CIRCLE_TOKEN}" \
# --header 'content-type: application/json' \
# --data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_smoketesting":true , "run_performancetesting":false, "run_basedeployment": false}}'

# Build & Deploy against production backend
"build-prod":
Expand Down Expand Up @@ -366,20 +370,24 @@ workflows:
only:
- qaenv
# This is beta env for production soft releases
- "build-prod-beta":
context : org-global
filters:
branches:
only:
- develop
# Deprecate this workflow due to beta env shutdown
# https://topcoder.atlassian.net/browse/CORE-201
# - "build-prod-beta":
# context : org-global
# filters:
# branches:
# only:
# - develop
# This is stage env for production QA releases
- "build-prod-staging":
context : org-global
filters: &filters-staging
branches:
only:
- develop
- HOTFIX_Contentful_Not_Working_June222023
# Deprecate this workflow due to beta env shutdown
# https://topcoder.atlassian.net/browse/CORE-202
# - "build-prod-staging":
# context : org-global
# filters: &filters-staging
# branches:
# only:
# - develop
# - CORE-201
# Production builds are exectuted
# when PR is merged to the master
# Don't change anything in this configuration
Expand All @@ -406,12 +414,6 @@ workflows:
jobs:
- Hold [Smoke-Testing]:
type: approval
- Smoke-Testing-On-Staging:
context : org-global
requires:
- Hold [Smoke-Testing]
filters:
<<: *filters-staging
- Smoke-Testing-On-Production:
context : org-global
requires:
Expand Down
184 changes: 0 additions & 184 deletions automated-smoke-test/config/automation-config-beta.json

This file was deleted.

Loading
Loading