-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#813 | Remove rpm related ciconfig and make commands
- Loading branch information
Showing
4 changed files
with
3 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,46 +4,6 @@ orbs: | |
aws-cli: circleci/[email protected] | ||
|
||
commands: | ||
deploy: | ||
description: Deployment of server | ||
parameters: | ||
hostname: | ||
type: string | ||
default: "ssh.staging.openchs.org" | ||
steps: | ||
- attach_workspace: | ||
at: ~/artifacts | ||
|
||
- run: sudo apt-get install make openssl | ||
|
||
- run: | ||
name: Install dependencies | ||
command: | | ||
sudo apt-get -y -qq update | ||
sudo apt-get -y -qq install python3-pip | ||
sudo pip3 install awscli --upgrade | ||
- run: | ||
name: Copy build to server | ||
command: | | ||
scp -o StrictHostKeyChecking=no ~/artifacts/avni-server-*.noarch.rpm ec2-user@<< parameters.hostname >>:/tmp/avni-server.rpm | ||
- run: | ||
name: Deploy server | ||
command: | | ||
ssh -o StrictHostKeyChecking=no ec2-user@<< parameters.hostname >> \<< EOF | ||
sudo service openchs stop 2>&1 >/dev/null | ||
sleep 5 | ||
sudo yum clean all 2>&1 >/dev/null | ||
sudo rm -rf /var/cache/yum 2>&1 >/dev/null | ||
sudo yum -y updateinfo 2>&1 >/dev/null | ||
sudo yum -y remove avni-server openchs-server java-1.7.0-openjdk 2>&1 >/dev/null | ||
sudo yum -y install /tmp/avni-server.rpm 2>&1 >/dev/null | ||
sudo service openchs start 2>&1 >/dev/null | ||
sleep 20 | ||
sudo rm -rf /tmp/avni-server.rpm | ||
EOF | ||
deploy_as_service: | ||
description: Deployment of avni-server as a systemd service | ||
parameters: | ||
|
@@ -160,20 +120,11 @@ jobs: | |
|
||
- run: mkdir -p ~/artifacts; | ||
|
||
- run: cp minor_version ~/artifacts/minor_version; | ||
|
||
- run: cp major_version ~/artifacts/major_version; | ||
|
||
- run: cp ~/avni-server/avni-server-api/build/distributions/avni-server-*.noarch.rpm ~/artifacts/; | ||
|
||
- run: cp ~/avni-server/avni-server-api/build/libs/avni-server-*.jar ~/artifacts/; | ||
|
||
- persist_to_workspace: | ||
root: ~/artifacts | ||
paths: | ||
- minor_version | ||
- major_version | ||
- avni-server-*.noarch.rpm | ||
- avni-server-*.jar | ||
|
||
- store_artifacts: | ||
|
@@ -240,14 +191,6 @@ jobs: | |
- deploy_as_service: | ||
env: "staging" | ||
|
||
UAT_deploy: | ||
docker: | ||
- image: cimg/openjdk:21.0 | ||
working_directory: ~/ | ||
steps: | ||
- deploy: | ||
hostname: "ssh.uat.openchs.org" | ||
|
||
PRERELEASE_deploy: | ||
docker: | ||
- image: cimg/deploy:2023.09 | ||
|
@@ -264,7 +207,7 @@ jobs: | |
|
||
PERF_deploy: | ||
docker: | ||
- image: cimg/openjdk:21.0 | ||
- image: cimg/deploy:2023.09 | ||
working_directory: ~/ | ||
steps: | ||
- aws-cli/setup: | ||
|
@@ -273,8 +216,8 @@ jobs: | |
- setup_server_access: | ||
instance-id: "i-0f30399b30e24a49b" | ||
availability-zone: "ap-south-1a" | ||
- deploy: | ||
hostname: "ssh.perf.avniproject.org" | ||
- deploy_as_service: | ||
env: "prerelease" | ||
|
||
PROD_deploy: | ||
docker: | ||
|
@@ -351,14 +294,6 @@ workflows: | |
context: non-prod-deploy | ||
requires: | ||
- STAGING_approve | ||
- UAT_approve: | ||
type: approval | ||
requires: | ||
- build | ||
- UAT_deploy: | ||
context: non-prod-deploy | ||
requires: | ||
- UAT_approve | ||
- PRERELEASE_approve: | ||
type: approval | ||
requires: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.