Skip to content

Commit

Permalink
avniproject/avni-product#1433 | Add NEW_PROD_deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
1t5j0y committed Nov 21, 2023
1 parent 828931d commit 1a3f09a
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,27 +177,13 @@ jobs:
docker buildx build --platform linux/amd64,linux/arm64 --tag "$DOCKER_USERNAME/rules-server:${SHORT_CIRCLE_SHA}" --push -f Dockerfile .
fi
# STAGING_deploy:
# docker:
# - image: cimg/node:10.24.1
# working_directory: ~/
# steps:
# - deploy:
# hostname: "ssh.staging.openchs.org"
STAGING_deploy:
docker:
- image: cimg/deploy:2023.09-node
working_directory: ~/
steps:
- deploy_ansible:
env: "staging"
# PRERELEASE_deploy:
# docker:
# - image: cimg/node:10.24.1
# working_directory: ~/
# steps:
# - deploy:
# hostname: "ssh.prerelease.openchs.org"
PRERELEASE_deploy:
docker:
- image: cimg/deploy:2023.09-node
Expand All @@ -212,6 +198,13 @@ jobs:
steps:
- deploy:
hostname: "ssh.perf.openchs.org"
NEW_PRODUCTION_deploy:
docker:
- image: cimg/deploy:2023.09-node
working_directory: ~/
steps:
- deploy_ansible:
env: "prod"
PRODUCTION_deploy:
docker:
- image: cimg/node:10.24.1
Expand Down Expand Up @@ -265,6 +258,14 @@ workflows:
context: prod-deploy
requires:
- PRODUCTION_approve
- NEW_PRODUCTION_approve:
type: approval
requires:
- app_build
- NEW_PRODUCTION_deploy:
context: prod-deploy
requires:
- NEW_PRODUCTION_approve
- PRERELEASE_approve:
type: approval
requires:
Expand Down

0 comments on commit 1a3f09a

Please sign in to comment.