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

Inprogress #205

Closed
wants to merge 45 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
ee9f848
Inprogress
ansuj9123 Jan 30, 2023
988d7cf
completed level1
ansuj9123 Jan 31, 2023
ab65649
Completed
ansuj9123 Feb 4, 2023
8413be2
ignore the node_modules
ansuj9123 Feb 7, 2023
b3e7735
delete node_modules
ansuj9123 Feb 7, 2023
2a3cb8c
reinstall the script file
ansuj9123 Feb 8, 2023
247f261
update
ansuj9123 Jan 29, 2024
f25edcc
Create frontend-s3-deploy.yml
ansuj9123 Feb 3, 2024
7d09b70
Create aws.yml
ansuj9123 Feb 3, 2024
2e49207
Delete client/.github/workflows/frontend-s3-deploy.yml
ansuj9123 Feb 8, 2024
618ed9a
Update aws.yml
ansuj9123 Feb 8, 2024
2dc810b
Update aws.yml
ansuj9123 Feb 8, 2024
54b4c7c
Update aws.yml
ansuj9123 Feb 8, 2024
a316f78
Update aws.yml
ansuj9123 Feb 8, 2024
25e2500
Update aws.yml
ansuj9123 Feb 8, 2024
5aa5581
Update aws.yml
ansuj9123 Feb 8, 2024
8880245
Update aws.yml
ansuj9123 Feb 9, 2024
397e178
Update aws.yml
ansuj9123 Feb 9, 2024
1400068
Update aws.yml-CD
ansuj9123 Feb 9, 2024
9fa5f62
Update aws.yml
ansuj9123 Feb 9, 2024
c8aa959
Update aws.yml-CD
ansuj9123 Feb 9, 2024
4b5178d
Update aws-cd.yml
ansuj9123 Feb 9, 2024
08a8fc3
Create backend-ec2-deploy.yml
ansuj9123 Feb 12, 2024
55fb9da
Delete .github/workflow directory
ansuj9123 Feb 12, 2024
0e1fd88
Create backend-ec2-deploy.yml
ansuj9123 Feb 12, 2024
9301a94
Update backend-ec2-deploy.yml
ansuj9123 Feb 12, 2024
2efc664
Update backend-ec2-deploy.yml
ansuj9123 Feb 12, 2024
f9efe46
Update backend-ec2-deploy.yml
ansuj9123 Feb 12, 2024
3009e56
Update backend-ec2-deploy.yml
ansuj9123 Feb 12, 2024
5b7bfd2
Update backend-ec2-deploy.yml
ansuj9123 Feb 12, 2024
e9c8e5e
Update backend-ec2-deploy.yml
ansuj9123 Feb 12, 2024
d000e7a
self-hosted runner
ansuj9123 Feb 14, 2024
c2942d0
Update backend-ec2-deploy.yml
ansuj9123 Feb 14, 2024
1547170
Update backend-ec2-deploy.yml
ansuj9123 Feb 14, 2024
e0d3bc7
Update backend-ec2-deploy.yml
ansuj9123 Feb 14, 2024
ead67e2
Update backend-ec2-deploy.yml
ansuj9123 Feb 14, 2024
d396c26
Update backend-ec2-deploy.yml
ansuj9123 Feb 14, 2024
d7b9d23
Update backend-ec2-deploy.yml
ansuj9123 Feb 14, 2024
932b076
Update backend-ec2-deploy.yml
ansuj9123 Feb 14, 2024
e19d862
ec2 server api access
ansuj9123 Feb 16, 2024
573ad38
Merge branch 'fullstack-final' of https://github.com/ansuj9123/Full-S…
ansuj9123 Feb 16, 2024
74494e6
backend workflow deploy
ansuj9123 Feb 16, 2024
32c1d60
fixed folder-structure
ansuj9123 Feb 23, 2024
7d28846
Create push-to--Dockerhub
ansuj9123 Feb 24, 2024
8ae2931
Update push-to--Dockerhub
ansuj9123 Feb 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
50 changes: 50 additions & 0 deletions .github/workflows/aws.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

name: Node.js CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'

- run: ls
- run: npm install
working-directory: client
- run: npm run build
working-directory: client
env:
CI: false

- uses: actions/upload-artifact@v3
with:
name: build-artifact
path: client/build/

deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: build-artifact
path: client/build
- name: Deploy to S3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
aws s3 cp \
--recursive \
--region eu-west-2 \
client/build s3://my-youtube-site
30 changes: 30 additions & 0 deletions .github/workflows/backend-ec2-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

name: Deploy

on:
push:
branches: [ fullstack-final ]

jobs:
Deploy:
name: Deploy to EC2
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- run: ls
- name: SSH into EC2 and run commands
uses: appleboy/[email protected]
with:
host: 13.40.127.171
username: ubuntu
key: ${{ secrets.SSH_EC2_SECRET }}
script: |
echo "Hello, EC2!"
ls
cd Full-Stack-Project-Assessment/
git pull
cd server/
node server.js


30 changes: 30 additions & 0 deletions .github/workflows/push-to--Dockerhub
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

name: Build and Push Docker image to Docker Hub

on:
push:
branches: [ fullstack-final ]

jobs:
Deploy:
name: Build and Push Docker image to Docker Hub
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- run: ls
- name: SSH into EC2 and run commands
uses: appleboy/[email protected]
with:
host: 13.40.127.171
username: ubuntu
key: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
name: Build and push Docker Hub
uses: docker/build-push-action@v4
with:
context: DockerFileFolder
push: true
tags: ansuj9/github


Loading