Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
59c39c6
continuous nitergrstion
justodevop Jan 24, 2026
c11ab33
my new commit
justodevop Feb 7, 2026
caeeccd
my 2nd commit
justodevop Feb 7, 2026
8f3b06f
update pipeline
justodevop Feb 7, 2026
b7d734a
Merge pull request #1 from Justinnjila/justo/login_page
Justinnjila Feb 7, 2026
8e13443
my 3rd update
justodevop Feb 7, 2026
1c293e8
Merge pull request #2 from Justinnjila/justo/login_page
Justinnjila Feb 7, 2026
b7ee4a8
my 4th update
justodevop Feb 8, 2026
fa61f34
Merge pull request #3 from Justinnjila/justo/login_page
Justinnjila Feb 8, 2026
f378bdb
created docker file and part of CD script
justodevop Feb 14, 2026
74d7a2c
Merge pull request #4 from Justinnjila/justo/login_page
Justinnjila Feb 14, 2026
0cc231b
my cd new commit
justodevop Feb 15, 2026
8476889
Merge pull request #5 from Justinnjila/justo/login_page
Justinnjila Feb 15, 2026
925a703
my cd kub clos
justodevop Feb 16, 2026
07bad5c
Merge pull request #6 from Justinnjila/justo/login_page
Justinnjila Feb 16, 2026
d1b3eae
my ci new e2e
justodevop Feb 21, 2026
9948fe2
Merge pull request #7 from Justinnjila/justo/login_page
Justinnjila Feb 21, 2026
0ef5994
my new deployment server
justodevop Feb 21, 2026
04feeb3
my new commit-G
justodevop Feb 21, 2026
b247243
Merge pull request #8 from Justinnjila/justo/login_page
Justinnjila Feb 21, 2026
79f3d76
my new commit-G
justodevop Feb 21, 2026
01080d5
Merge pull request #9 from Justinnjila/justo/login_page
Justinnjila Feb 21, 2026
f1f0b6e
my new commit-G
justodevop Feb 21, 2026
5e1dca2
Merge pull request #10 from Justinnjila/justo/login_page
Justinnjila Feb 21, 2026
9186f04
my new cd commit
justodevop Feb 22, 2026
6bc855a
Merge pull request #11 from Justinnjila/justo/login_page
Justinnjila Feb 22, 2026
a347fe5
my new cd commit
justodevop Feb 22, 2026
a681268
Merge pull request #12 from Justinnjila/justo/login_page
Justinnjila Feb 22, 2026
aea3cd3
my new cd commit1
justodevop Feb 22, 2026
88e0181
my new cd commit2
justodevop Feb 22, 2026
d34e2eb
my new cd commit3
justodevop Feb 22, 2026
c8cb780
my new cd commit3
justodevop Feb 23, 2026
757d2aa
Merge pull request #13 from Justinnjila/justo/login_page
Justinnjila Feb 23, 2026
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
48 changes: 48 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: nodejs CD

on:
push:
branches:
- master

jobs:
continuous_deployment:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3

- name: setup docker
uses: docker/setup-buildx-action@v2

- name: build docker image
run: docker build -t user/app:latest .
- name: tag Docker image
run: docker tag user/app:latest ${{ secrets.DOCKER_USERNAME }}/nodejs-test-app:latest


- name: LOGIN TO DOCKER HUB
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: push docker image to docker hub
run: docker push ${{ secrets.DOCKER_USERNAME }}/nodejs-test-app:latest

- name: add ssh private key
run: |

mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
- name: add SSH known hosts
run: ssh-keyscan -t rsa ${{secrets.SSH_HOST }} >> ~/.ssh/known_hosts
- name: Deploy to Server
run: |
ssh -o StrictHostKeyChecking=no ubuntu@${{ secrets.SSH_HOST }} << 'EOF'
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/nodejs-test-app:latest
sudo docker stop nodejs-test-app || true
sudo docker rm nodejs-test-app || true
sudo docker run -d --name nodejs-test-app -p 81:3000 ${{ secrets.DOCKER_USERNAME }}/nodejs-test-app:latest
EOF

32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: nodejs CI...

on:
pull_request:
branches:
- master

jobs:
continuous_integration:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3

- name: setup node js 22
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"

- name: install dependencies
run: npm in

- name: build application
run: echo "Building application"

- name: run unit tests
run: echo "running unit tests"

- name: run itergration tests
run: echo "running integration tests"

6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM node:20-alpine
WORKDIR /app
ADD . /app
RUN npm install
EXPOSE 3000
CMD ["npm" , "run" ,"start:dev"]