From b07a8ba92ad83063a1e52ba362fadb5674d8efd5 Mon Sep 17 00:00:00 2001
From: Snehal Santhosh Velankar
<73527588+snehalVelankar@users.noreply.github.com>
Date: Mon, 11 Mar 2024 01:05:00 +0530
Subject: [PATCH 01/11] Create ci-cd.yml
---
.github/workflows/ci-cd.yml | 11 +++++++++++
1 file changed, 11 insertions(+)
create mode 100644 .github/workflows/ci-cd.yml
diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml
new file mode 100644
index 0000000..1a529d0
--- /dev/null
+++ b/.github/workflows/ci-cd.yml
@@ -0,0 +1,11 @@
+name: CI/CD Pipeline
+on:
+ push:
+ branches:
+ - main
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
From b2f079a348fb2c1526f7c98a1db70f8d1251a45a Mon Sep 17 00:00:00 2001
From: Snehal Santhosh Velankar
<73527588+snehalVelankar@users.noreply.github.com>
Date: Mon, 11 Mar 2024 01:39:04 +0530
Subject: [PATCH 02/11] Update index.html
---
index.html | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/index.html b/index.html
index 8083e53..6441791 100644
--- a/index.html
+++ b/index.html
@@ -116,10 +116,10 @@
From f0f0e2851e5a37c167b3c6954803009388655368 Mon Sep 17 00:00:00 2001
From: Snehal Santhosh Velankar
<73527588+snehalVelankar@users.noreply.github.com>
Date: Mon, 11 Mar 2024 01:42:21 +0530
Subject: [PATCH 03/11] Update ci-cd.yml
---
.github/workflows/ci-cd.yml | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml
index 1a529d0..6d9c0bf 100644
--- a/.github/workflows/ci-cd.yml
+++ b/.github/workflows/ci-cd.yml
@@ -9,3 +9,16 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
+ - name: Install dependencies
+ run: npm install
+ - name: Build
+ run: npm run build
+ - name: Run tests
+ run: npm test
+ - name: Deploy to GitHub Pages
+ uses: JamesIves/github-pages-deploy-action@4.1.6
+ with:
+ ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ BRANCH: gh-pages
+ FOLDER: build
+
From f0d77606ca8155e807eaf68ef266916b6d6e0c1e Mon Sep 17 00:00:00 2001
From: Snehal Santhosh Velankar
<73527588+snehalVelankar@users.noreply.github.com>
Date: Mon, 11 Mar 2024 01:43:44 +0530
Subject: [PATCH 04/11] Update ci-cd.yml
---
.github/workflows/ci-cd.yml | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml
index 6d9c0bf..1a529d0 100644
--- a/.github/workflows/ci-cd.yml
+++ b/.github/workflows/ci-cd.yml
@@ -9,16 +9,3 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- - name: Install dependencies
- run: npm install
- - name: Build
- run: npm run build
- - name: Run tests
- run: npm test
- - name: Deploy to GitHub Pages
- uses: JamesIves/github-pages-deploy-action@4.1.6
- with:
- ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- BRANCH: gh-pages
- FOLDER: build
-
From a70651716900b945c9ee625daeb9dcb735956673 Mon Sep 17 00:00:00 2001
From: Snehal Santhosh Velankar
<73527588+snehalVelankar@users.noreply.github.com>
Date: Mon, 11 Mar 2024 02:45:45 +0530
Subject: [PATCH 05/11] Update ci-cd.yml
---
.github/workflows/ci-cd.yml | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml
index 1a529d0..0373c60 100644
--- a/.github/workflows/ci-cd.yml
+++ b/.github/workflows/ci-cd.yml
@@ -9,3 +9,18 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
+ - name: Install Docker CLI
+ run: |
+ sudo apt-get update
+ sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
+ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
+ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
+ sudo apt-get update
+ sudo apt-get install docker-ce
+ - name: Build Docker image
+ run: docker build -t snehalvelankar/cicd:tagname.
+ - name: Login to Docker registry
+ run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin https://hub.docker.com/repository/docker/snehalvelankar/cicd/general
+ - name: Push Docker image
+ run: docker push https://hub.docker.com/repository/docker/snehalvelankar/cicd/general/snehalvelankar/cicd:tagname:latest
+
From ee9313b2b16f8d38cb383cdc1a76c4edac86142c Mon Sep 17 00:00:00 2001
From: Snehal Santhosh Velankar
<73527588+snehalVelankar@users.noreply.github.com>
Date: Mon, 11 Mar 2024 02:54:47 +0530
Subject: [PATCH 06/11] Update ci-cd.yml
---
.github/workflows/ci-cd.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml
index 0373c60..40eeaef 100644
--- a/.github/workflows/ci-cd.yml
+++ b/.github/workflows/ci-cd.yml
@@ -18,7 +18,7 @@ jobs:
sudo apt-get update
sudo apt-get install docker-ce
- name: Build Docker image
- run: docker build -t snehalvelankar/cicd:tagname.
+ run: docker buildx build -t https://hub.docker.com/repository/docker/snehalvelankar/cicd/general.
- name: Login to Docker registry
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin https://hub.docker.com/repository/docker/snehalvelankar/cicd/general
- name: Push Docker image
From d8d52d254d1317f2a7886ff7cb21a09fc4a3c753 Mon Sep 17 00:00:00 2001
From: Snehal Santhosh Velankar
<73527588+snehalVelankar@users.noreply.github.com>
Date: Mon, 11 Mar 2024 02:59:26 +0530
Subject: [PATCH 07/11] Update ci-cd.yml
---
.github/workflows/ci-cd.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml
index 40eeaef..8f91767 100644
--- a/.github/workflows/ci-cd.yml
+++ b/.github/workflows/ci-cd.yml
@@ -18,7 +18,7 @@ jobs:
sudo apt-get update
sudo apt-get install docker-ce
- name: Build Docker image
- run: docker buildx build -t https://hub.docker.com/repository/docker/snehalvelankar/cicd/general.
+ run: docker buildx build -t https://hub.docker.com/repository/docker/snehalvelankar/cicd/general
- name: Login to Docker registry
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin https://hub.docker.com/repository/docker/snehalvelankar/cicd/general
- name: Push Docker image
From 789b1c0059702c316e1b9b927c3b3129f03512aa Mon Sep 17 00:00:00 2001
From: Snehal Santhosh Velankar
<73527588+snehalVelankar@users.noreply.github.com>
Date: Mon, 11 Mar 2024 03:08:40 +0530
Subject: [PATCH 08/11] Update ci-cd.yml
---
.github/workflows/ci-cd.yml | 22 +++++++---------------
1 file changed, 7 insertions(+), 15 deletions(-)
diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml
index 8f91767..21c44d2 100644
--- a/.github/workflows/ci-cd.yml
+++ b/.github/workflows/ci-cd.yml
@@ -9,18 +9,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- - name: Install Docker CLI
- run: |
- sudo apt-get update
- sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get install docker-ce
- - name: Build Docker image
- run: docker buildx build -t https://hub.docker.com/repository/docker/snehalvelankar/cicd/general
- - name: Login to Docker registry
- run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin https://hub.docker.com/repository/docker/snehalvelankar/cicd/general
- - name: Push Docker image
- run: docker push https://hub.docker.com/repository/docker/snehalvelankar/cicd/general/snehalvelankar/cicd:tagname:latest
-
+ - name: Build and push docker Image
+ uses: mr-smithers-excellent/docker-build-push@v4
+ with:
+ image: snehalvelankar/cicd
+ registry: docker.io
+ username: ${{ secrets.DOCKER_USERNAME }}
+ password: ${{ secrets.DOCKER_PASSWORD }}
From b531ff94b410f4a2db3b25ff8a0804ebb0148f85 Mon Sep 17 00:00:00 2001
From: Snehal Santhosh Velankar
<73527588+snehalVelankar@users.noreply.github.com>
Date: Mon, 11 Mar 2024 03:26:52 +0530
Subject: [PATCH 09/11] Create README.md
---
README.md | 1 +
1 file changed, 1 insertion(+)
create mode 100644 README.md
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..e0fdf41
--- /dev/null
+++ b/README.md
@@ -0,0 +1 @@
+CI/CD pipeline using GitHub Actions for the JavaScript-based frontend application hosted at the specified repository and build docker image and push to private docker repo
From e8ec200b81875cbe6b3c8471ac91073b31575f0e Mon Sep 17 00:00:00 2001
From: Snehal Santhosh Velankar
<73527588+snehalVelankar@users.noreply.github.com>
Date: Mon, 11 Mar 2024 03:28:09 +0530
Subject: [PATCH 10/11] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index e0fdf41..89193fe 100644
--- a/README.md
+++ b/README.md
@@ -1 +1 @@
-CI/CD pipeline using GitHub Actions for the JavaScript-based frontend application hosted at the specified repository and build docker image and push to private docker repo
+**CI/CD pipeline using GitHub Actions for the JavaScript-based frontend application and build docker image and push to docker repo**
From fc2e08ba59232eb64f151002c8cf405561784226 Mon Sep 17 00:00:00 2001
From: Snehal Santhosh Velankar
<73527588+snehalVelankar@users.noreply.github.com>
Date: Tue, 12 Mar 2024 14:34:20 +0530
Subject: [PATCH 11/11] Update index.html
---
index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
index 6441791..6f148e6 100644
--- a/index.html
+++ b/index.html
@@ -6,7 +6,7 @@
-
New Template — Slides 4.1 Template Generator
+ New Template — Slides 4.1 Template