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

Github Action to Deploy Talawa-API to GoDaddy VPS #1491

Merged
merged 37 commits into from
Jan 12, 2024
Merged
Changes from 14 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
2ee1321
Added deploy.yml
vasujain275 Dec 12, 2023
d77a7e5
Added action to run when push on deploy branch too
vasujain275 Dec 12, 2023
6f57ddd
refactor: changed push to all branches
vasujain275 Dec 12, 2023
ddac418
test: ec2 ci/cd pipeline test1
vasujain275 Dec 12, 2023
85d54a2
test: ec2 ci/cd pipeline test2
vasujain275 Dec 12, 2023
2ed3f8e
refactor: Added Port to deploy.yml
vasujain275 Dec 12, 2023
9d13d5f
test: ec2 ci/cd pipeline test3
vasujain275 Dec 12, 2023
d52229e
test: ec2 ci/cd pipeline test4
vasujain275 Dec 12, 2023
172fb17
test: ec2 ci/cd pipeline test5
vasujain275 Dec 12, 2023
aad3ae4
refactor: typo in cd command
vasujain275 Dec 12, 2023
d7c5df1
refactor: added command to delete repo after docker compose
vasujain275 Dec 12, 2023
29af287
refactor: added sudo to required commands
vasujain275 Dec 12, 2023
af788de
refactor: Simplifed the script in deploy.yml
vasujain275 Dec 12, 2023
19a06fd
refactor: removed timeout issue
vasujain275 Dec 12, 2023
0470a5e
refactor: Optimized the Build process of Docker Compose
vasujain275 Dec 15, 2023
cdacef5
refactor : Added Password field to Action
vasujain275 Dec 21, 2023
acce6bb
refactor: removed sudo from commands
vasujain275 Dec 21, 2023
701a1ef
refactor : removed the password field as it was not needed
vasujain275 Dec 21, 2023
84a600a
refactor: Added main branch for on push in github-action
vasujain275 Dec 21, 2023
b802878
refactor: always run code from develop
vasujain275 Dec 21, 2023
53a87a7
refactor: Added API_DEMO Suffix to env variables and testing for tala…
vasujain275 Dec 23, 2023
d19c0ff
refactor: removed the triger for push on deployement branch
vasujain275 Dec 23, 2023
1949629
Added MongoDB Reset Script
vasujain275 Dec 26, 2023
b2cad3d
refactor: Fixed Bug in Setup.ts related MongoDB url env variable
vasujain275 Dec 26, 2023
d283307
Added SSL Certs renew script
vasujain275 Dec 26, 2023
576175d
docs: Added docs to setup cloud instance for future refrence
vasujain275 Dec 26, 2023
4062631
refactor: import sample data after dropping the database in reset_mon…
vasujain275 Dec 26, 2023
9e4629b
refactor: Changed File Structure as needed
vasujain275 Dec 31, 2023
6cbab32
fixed conflict in setup.ts
vasujain275 Dec 31, 2023
87b3292
Merge branch 'develop' into deployment
vasujain275 Dec 31, 2023
dd0a592
reverted all changes in setup.ts
vasujain275 Jan 1, 2024
1acc455
refactor: Added detailed comments in scripts
vasujain275 Jan 1, 2024
7e4c8a7
refactor: removed perm check from each script as dedicateted script c…
vasujain275 Jan 2, 2024
126d642
refactor: fixed cert_renew.sh
vasujain275 Jan 2, 2024
ce7dae0
docs: Completed the Cloud API Demo Readme
vasujain275 Jan 2, 2024
a263e7b
docs: added solution to cors error
vasujain275 Jan 4, 2024
d32d6ab
refactor: removed deployment branch from deploy.yml
vasujain275 Jan 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy to AWS EC2

on:
push:
branches:
- deployment
vasujain275 marked this conversation as resolved.
Show resolved Hide resolved
- develop

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Execute remote ssh commands using password
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.PORT }}
command_timeout: 200m
script: |
cd talawa-api
git pull origin
sudo docker system prune -a -f
sudo docker-compose up -d

Loading