Skip to content

Commit

Permalink
avniproject/avni-product#1433 | Add NEW_PRERELEASE_deploy
Browse files Browse the repository at this point in the history
(cherry picked from commit f56ad8e)
  • Loading branch information
1t5j0y authored and himeshr committed Nov 27, 2023
1 parent 1cbd05a commit 8097299
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,6 @@ jobs:
SHORT_CIRCLE_SHA=$(echo "$CIRCLE_SHA1" | cut -c1-6)
docker buildx build --platform linux/amd64,linux/arm64 --tag "$DOCKER_USERNAME/avni-server:${SHORT_CIRCLE_SHA}" --push -f Dockerfile .
fi
# STAGING_deploy:
# docker:
# - image: circleci/openjdk:8-jdk
# working_directory: ~/
# steps:
# - deploy:
# hostname: "ssh.staging.openchs.org"
STAGING_deploy:
docker:
Expand All @@ -239,6 +231,14 @@ jobs:
- deploy:
hostname: "ssh.prerelease.openchs.org"

NEW_PRERELEASE_deploy:
docker:
- image: cimg/deploy:2023.09
working_directory: ~/
steps:
- deploy_as_service:
env: "prerelease"

PERF_deploy:
docker:
- image: circleci/openjdk:8-jdk
Expand Down Expand Up @@ -288,14 +288,6 @@ workflows:
context: non-prod-deploy
requires:
- STAGING_approve
# - NEW_STAGING_approve:
# type: approval
# requires:
# - build
# - NEW_STAGING_deploy:
# context: non-prod-deploy
# requires:
# - NEW_STAGING_approve
- UAT_approve:
type: approval
requires:
Expand All @@ -312,6 +304,14 @@ workflows:
context: non-prod-deploy
requires:
- PRERELEASE_approve
- NEW_PRERELEASE_approve:
type: approval
requires:
- build
- NEW_PRERELEASE_deploy:
context: non-prod-deploy
requires:
- NEW_PRERELEASE_approve
- PERF_approve:
type: approval
requires:
Expand Down

0 comments on commit 8097299

Please sign in to comment.