-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into HEAD
- Loading branch information
Showing
7,172 changed files
with
843,078 additions
and
29,250 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: CI/CD Pipeline for React.js inside 'frontend' folder | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
|
||
# - name: Navigate to frontend and install dependencies | ||
# run: | | ||
# cd frontend | ||
# npm install | ||
|
||
# - name: Run tests | ||
# run: | | ||
# cd frontend | ||
# npm test | ||
|
||
# - name: Build React app | ||
# run: | | ||
# cd frontend | ||
# npm run build | ||
# - name: Print environment variables | ||
# run: | | ||
# echo "NO: ${{ secrets.NO }}" | ||
# echo "Server IP: ${{ secrets.SERVER_IP }}" | ||
# echo "Server Username: ${{ secrets.SERVER_USERNAME }}" | ||
|
||
# - name: Deploy to server via SSH | ||
# run: | | ||
# ssh | ||
# uses: appleboy/ssh-action@master | ||
# with: | ||
# host: ${{ secrets.SERVER_IP }} | ||
# username: ${{ secrets.SERVER_USERNAME }} | ||
# password: ${{ secrets.SERVER_PASSWORD }} | ||
# script: | | ||
# cd /home/cse-tech/ashu | ||
# cd frontend | ||
# git pull origin main | ||
# npm install | ||
# npm run build | ||
# pm2 restart react-app |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
BUILD_NAME = iitj_tree | ||
GIT_COMMIT=$(git log -1 --pretty=format:%h) | ||
name= "2" | ||
|
||
|
||
say_hello: | ||
@echo "hel world" | ||
git log -1 | ||
@echo "this is all the commit ${GIT_COMMIT}" | ||
echo "Hello, ${name}!" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.