-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fbee280
commit 80db7b4
Showing
1 changed file
with
14 additions
and
29 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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
##It is deploying on server 3.6.249.151 For Dev Environment only please note. | ||
name: Deploy to DEV | ||
on: | ||
push: | ||
|
@@ -40,39 +39,25 @@ jobs: | |
cd /home/prasad/vihsal-api/api-test/ | ||
./deploy.sh | ||
ENDSSH | ||
- name: Deploy to server | ||
run: | | ||
- variables: | ||
EMAIL_RECIPIENTS: "[email protected]" | ||
variables: | ||
EMAIL_RECIPIENTS: "[email protected]" | ||
- name: Deploy to server | ||
run: | | ||
- apt-get update -qy | ||
- apt-get install -y python3-pip | ||
- pip3 install sendmail | ||
before_script: | ||
- apt-get update -qy | ||
- apt-get install -y python3-pip | ||
- pip3 install sendmail | ||
build: | ||
stage: build | ||
script: | ||
- echo "Building the project..." | ||
after_script: | ||
- if [ "$CI_JOB_STATUS" == "success" ]; then echo "Build successful!" | sendmail $EMAIL_RECIPIENTS; fi | ||
- if [ "$CI_JOB_STATUS" == "failed" ]; then echo "Build failed!" | sendmail $EMAIL_RECIPIENTS; fi | ||
- name: Deploy to server | ||
run: | | ||
- if [ "$CI_JOB_STATUS" == "success" ]; then echo "Build successful!" | sendmail $EMAIL_RECIPIENTS; fi | ||
- if [ "$CI_JOB_STATUS" == "failed" ]; then echo "Build failed!" | sendmail $EMAIL_RECIPIENTS; fi | ||
test: | ||
stage: test | ||
script: | ||
- echo "Running tests..." | ||
after_script: | ||
- if [ "$CI_JOB_STATUS" == "success" ]; then echo "Tests successful!" | sendmail $EMAIL_RECIPIENTS; fi | ||
- if [ "$CI_JOB_STATUS" == "failed" ]; then echo "Tests failed!" | sendmail $EMAIL_RECIPIENTS; fi | ||
deploy: | ||
stage: deploy | ||
script: | ||
- echo "Deploying the project..." | ||
after_script: | ||
- if [ "$CI_JOB_STATUS" == "success" ]; then echo "Deployment successful!" | sendmail $EMAIL_RECIPIENTS; fi | ||
- if [ "$CI_JOB_STATUS" == "failed" ]; then echo "Deployment failed!" | sendmail $EMAIL_RECIPIENTS; fi | ||