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

pull request #16

Open
wants to merge 106 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
e30072a
adding ci
Aug 23, 2022
9aa0767
adding ci
Aug 23, 2022
3f337b8
adding ci
Aug 23, 2022
ec0e0ce
adding ci
Aug 24, 2022
791429f
adding nodejs-app
Aug 24, 2022
6345bf8
updating the ci.yaml file
Aug 24, 2022
abafaeb
updating the ci.yaml file
Aug 24, 2022
f1f1824
updating the build file for continuous integration
Aug 24, 2022
d76b842
updating the build file for continuous integration
Aug 24, 2022
a87e72a
updating the build file for continuous integration
Aug 24, 2022
7958ab6
updating the build file for continuous integration
Aug 24, 2022
da91c56
adding the jenkinsfile
Aug 24, 2022
c6a0cee
adding the jenkinsfile
Aug 24, 2022
6ed70fc
adding the jenkinsfile
Aug 24, 2022
8c6b7ce
adding the jenkinsfile
Aug 24, 2022
dfb50e7
adding the jenkinsfile
Aug 24, 2022
c21cb7a
adding the jenkinsfile
Aug 24, 2022
e8381c4
adding the jenkinsfile
Aug 24, 2022
fef8d8c
adding the jenkinsfile
Aug 24, 2022
7d90903
adding the jenkinsfile
Aug 24, 2022
60ba170
adding the jenkinsfile
Aug 24, 2022
f4ad854
adding the jenkinsfile
Aug 24, 2022
0ed64f0
adding the jenkinsfile
Aug 24, 2022
183f128
adding the jenkinsfile
Aug 24, 2022
f2526d0
adding the jenkinsfile
Aug 24, 2022
bf1792b
adding the jenkinsfile
Aug 24, 2022
9a2751c
adding the jenkinsfile
Aug 24, 2022
f4c2f57
adding the jenkinsfile
Aug 24, 2022
186f75b
Merge pull request #1 from QNNAKWUE/dev
QNNAKWUE Aug 25, 2022
8c8822d
adding the cicd yaml files
QNNAKWUE Aug 26, 2022
52cc24a
adding the cicd yaml files
QNNAKWUE Aug 26, 2022
7147058
adding the jenkinsfile
Aug 26, 2022
1de32ca
adding the jenkinsfile
Aug 26, 2022
68a619b
adding the jenkinsfile
Aug 26, 2022
f13e2b2
adding the yaml file
Aug 26, 2022
b90c935
adding the yaml file
Aug 27, 2022
f12b5ca
adding the yaml file
Aug 27, 2022
f231ea0
adding the yaml file
Aug 27, 2022
d4ebe41
adding the yaml file
Aug 27, 2022
01dfdab
adding the yaml file
Aug 27, 2022
1880204
adding the main.yml file
Aug 27, 2022
2f20258
adding the main.yml file
Aug 27, 2022
64ec0d4
updating the main.yml file
Aug 27, 2022
982a12d
updating the main.yml file again
Aug 27, 2022
920998e
updating the main.yml file again
Aug 27, 2022
ed6c933
updating the main.yml file again
Aug 27, 2022
6a4857d
updating the main.yml file again
Aug 27, 2022
52d4e7b
updating the main.yml file again
Aug 27, 2022
e908eb2
updating the main.yml file again
Aug 27, 2022
7d899fe
updating the main.yml file again
Aug 27, 2022
1881512
updating the main.yml file again
Aug 28, 2022
15a3d81
updating the main.yml file again
Aug 28, 2022
fefad24
updating the main.yml file again
Aug 28, 2022
81994e8
updating the workflow.yml file
Aug 28, 2022
521de5c
updating the workflow.yml file
Aug 28, 2022
46665ae
updating the workflow.yml file
Aug 28, 2022
85d4f80
updating the workflow.yml file
Aug 28, 2022
d9c8a35
updating the workflow.yml file
Aug 28, 2022
4242e01
updating the workflow.yml file
Aug 28, 2022
c8b4b5b
updating the workflow.yml file
Aug 28, 2022
b119442
updating the workflow.yml file
Aug 28, 2022
40f15d6
updating the workflow.yml file
Aug 28, 2022
b2c2692
updating the workflow.yml file
Aug 28, 2022
4dfa8f5
updating the workflow.yml file
Aug 28, 2022
ea5005e
updating the workflow.yml file
Aug 28, 2022
7ce7c74
updating the workflow.yml file
Aug 28, 2022
b0bf965
updating the workflow.yml file
Aug 28, 2022
6cad0af
updating the workflow.yml file
Aug 28, 2022
56fa633
updating the workflow.yml file
Aug 28, 2022
f48b953
updating the workflow.yml file
Aug 28, 2022
f0c5cb3
updating the workflow.yml file
Aug 28, 2022
ae8c778
updating the workflow.yml file
Aug 28, 2022
3815d65
updating the workflow.yml file
Aug 28, 2022
13a8212
updating the workflow.yml file
Aug 28, 2022
3adc8df
updating the workflow.yml file
Aug 28, 2022
ee98156
updating the workflow.yml file
Aug 28, 2022
1dbe0b0
updating the workflow.yml file
Aug 28, 2022
2a8ed16
updating the workflow.yml file
Aug 28, 2022
c7fa07c
updating the workflow.yml file
Aug 28, 2022
693dca5
updating the workflow.yml file
Aug 28, 2022
8ce3e58
updating the workflow.yml file
Aug 28, 2022
4af364d
updating the workflow.yml file
Aug 28, 2022
80f83bd
updating the workflow.yml file
Aug 28, 2022
b6b032d
updating the workflow.yml file
Aug 28, 2022
0a0ef33
updating the workflow.yml file
Aug 28, 2022
8aee8a9
updating the workflow.yml file
Aug 28, 2022
21e33c5
updating the workflow.yml file
Aug 28, 2022
1f81275
updating the workflow.yml file
Aug 28, 2022
261e86e
updating the workflow.yml file
Aug 28, 2022
0757786
making changes
Sep 7, 2022
ce5350a
making changes
Sep 7, 2022
ad51e68
making changes
Sep 7, 2022
1efb7ed
making changes
Sep 7, 2022
c9783fa
making changes
Sep 7, 2022
fcd0ca6
making changes
Sep 7, 2022
2cc5c83
making changes
Sep 7, 2022
e8eac73
making changes
Sep 7, 2022
6fe6463
making changes
Sep 7, 2022
49288c7
making changes
Sep 7, 2022
0ce65d0
making changes
Sep 7, 2022
685a9ac
making changes
Sep 7, 2022
840ccfa
making changes
Sep 7, 2022
305f5c4
making changes
Sep 7, 2022
7062962
making changes
Sep 7, 2022
9c0857f
making changes
Sep 7, 2022
d8fb6fd
making changes
Sep 7, 2022
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
Binary file modified .DS_Store
Binary file not shown.
69 changes: 69 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: CI-CD-Pipeline-to-AWS-ElasticBeanStalk

# env:
# EB_S3_BUCKET_NAME : "tjs-app"
# EB_APPLICATION_NAME : "tjs-application"
# EB_ENVIRONMENT_NAME : "Tjsapplication-env"
# AWS_REGION_NAME : "us-east-2"

on:
push:
branches: [ master ]
pull_request:
branches: [ main ]

jobs:
build_test_and_deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 12.x ]

steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'npm'

- name: Installing NPM
run: npm install

# - name: Linting check
# run: npm run lint

- name: Building application
run: npm run build --if-present

# - name: Testing application
# run: npm test

- name: Create ZIP deployment package
run: zip -r deploy.zip . -x '*.git*'

- name: Get timestamp
id: timestamp
run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H-%M-%S-%3NZ')"

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@13d241b293754004c80624b5567555c4a39ffbe3
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: "us-east-2"


- name: Run beanstalk deploy
uses: einaregilsson/beanstalk-deploy@v2
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
application_name: "tjs-application"
environment_name: "Tjsapplication-env"
aws_region: "us-east-2"
version_label: "${{ steps.timestamp.outputs.date }}"
deployment_package: deploy.zip

- name: Yippee! Deployed!
run: echo App deployed to ELB
Loading