From eb7c294cf7346840f70000180db07bdcfe140bfa Mon Sep 17 00:00:00 2001 From: akannan1087 <15877864+akannan1087@users.noreply.github.com> Date: Sat, 20 Jan 2024 19:55:42 -0600 Subject: [PATCH 01/57] Update docker-image.yml --- .github/workflows/docker-image.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index eac633f..0f3ec9d 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -14,5 +14,15 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) + - name: Build Docker image + run: | + docker build -t my-docker-repo . + docker tag my-docker-repo:latest ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/my-docker-repo:latest + - name: Login to Amazon ECR + run: | + aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} + aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws configure set default.region ${{ secrets.AWS_REGION }} + aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username AWS --password-stdin ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com + - name: Push Docker image to ECR + run: docker push ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/my-docker-repo:latest From d5182652a2ac9251e7136e2c6fbc04992b51d34d Mon Sep 17 00:00:00 2001 From: akannan1087 <15877864+akannan1087@users.noreply.github.com> Date: Sat, 20 Jan 2024 19:59:25 -0600 Subject: [PATCH 02/57] Update github-actions-demo.yml --- .github/workflows/github-actions-demo.yml | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 7d304f4..8b13789 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -1,20 +1 @@ -name: Om GitHub Actions Demo -on: - push: - branches: ["master"] -jobs: - Explore-GitHub-Actions: - runs-on: ubuntu-latest - steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - name: Check out repository code - uses: actions/checkout@v4 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ github.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." From 8ec3526b511f89a1fa5a2a54f4a7b40b672cf37f Mon Sep 17 00:00:00 2001 From: akannan1087 <15877864+akannan1087@users.noreply.github.com> Date: Sat, 20 Jan 2024 20:00:10 -0600 Subject: [PATCH 03/57] Delete .github/workflows directory --- .github/workflows/docker-image.yml | 28 ----------------------- .github/workflows/github-actions-demo.yml | 1 - 2 files changed, 29 deletions(-) delete mode 100644 .github/workflows/docker-image.yml delete mode 100644 .github/workflows/github-actions-demo.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml deleted file mode 100644 index 0f3ec9d..0000000 --- a/.github/workflows/docker-image.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Docker Image CI - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -jobs: - - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Build Docker image - run: | - docker build -t my-docker-repo . - docker tag my-docker-repo:latest ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/my-docker-repo:latest - - name: Login to Amazon ECR - run: | - aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} - aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws configure set default.region ${{ secrets.AWS_REGION }} - aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username AWS --password-stdin ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com - - name: Push Docker image to ECR - run: docker push ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/my-docker-repo:latest diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml deleted file mode 100644 index 8b13789..0000000 --- a/.github/workflows/github-actions-demo.yml +++ /dev/null @@ -1 +0,0 @@ - From 8a58b088b78f9dc04acd42ad1007d6f7e8fb901c Mon Sep 17 00:00:00 2001 From: akannan1087 <15877864+akannan1087@users.noreply.github.com> Date: Sat, 20 Jan 2024 20:00:49 -0600 Subject: [PATCH 04/57] Create cicd.yaml --- .workflow/cicd.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .workflow/cicd.yaml diff --git a/.workflow/cicd.yaml b/.workflow/cicd.yaml new file mode 100644 index 0000000..a9801e0 --- /dev/null +++ b/.workflow/cicd.yaml @@ -0,0 +1,26 @@ +name: Docker Image CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build Docker image + run: | + docker build -t my-docker-repo . + docker tag my-docker-repo:latest ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/my-docker-repo:latest + - name: Login to Amazon ECR + run: | + aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} + aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws configure set default.region ${{ secrets.AWS_REGION }} + aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username AWS --password-stdin ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com + - name: Push Docker image to ECR + run: docker push ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/my-docker-repo:latest From c5827ae51ccf7835745bce34d05fefa4f0f63cac Mon Sep 17 00:00:00 2001 From: akannan1087 <15877864+akannan1087@users.noreply.github.com> Date: Sat, 20 Jan 2024 20:02:21 -0600 Subject: [PATCH 05/57] Create cicd.yaml --- .github/workflows/cicd.yaml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/cicd.yaml diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml new file mode 100644 index 0000000..96fc038 --- /dev/null +++ b/.github/workflows/cicd.yaml @@ -0,0 +1 @@ +.workflow From 676bf716202c1905d4fc22ddaa1a2dee874863ff Mon Sep 17 00:00:00 2001 From: akannan1087 <15877864+akannan1087@users.noreply.github.com> Date: Sat, 20 Jan 2024 20:02:49 -0600 Subject: [PATCH 06/57] Update cicd.yaml --- .github/workflows/cicd.yaml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index 96fc038..a9801e0 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -1 +1,26 @@ -.workflow +name: Docker Image CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build Docker image + run: | + docker build -t my-docker-repo . + docker tag my-docker-repo:latest ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/my-docker-repo:latest + - name: Login to Amazon ECR + run: | + aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} + aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws configure set default.region ${{ secrets.AWS_REGION }} + aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username AWS --password-stdin ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com + - name: Push Docker image to ECR + run: docker push ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/my-docker-repo:latest From c8a72747f75593aabc6d3e8e58696ca7bfa6e740 Mon Sep 17 00:00:00 2001 From: akannan1087 <15877864+akannan1087@users.noreply.github.com> Date: Sat, 20 Jan 2024 20:58:58 -0600 Subject: [PATCH 07/57] Update cicd.yaml --- .github/workflows/cicd.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index a9801e0..055d586 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -3,9 +3,6 @@ name: Docker Image CI on: push: branches: [ "master" ] - pull_request: - branches: [ "master" ] - jobs: build: runs-on: ubuntu-latest From 0ff1a170a1896f873bb4a49c52c175567e659cc1 Mon Sep 17 00:00:00 2001 From: akannan1087 <15877864+akannan1087@users.noreply.github.com> Date: Sat, 20 Jan 2024 21:38:40 -0600 Subject: [PATCH 08/57] Update cicd.yaml --- .github/workflows/cicd.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index 055d586..7e559e8 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -21,3 +21,5 @@ jobs: aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username AWS --password-stdin ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com - name: Push Docker image to ECR run: docker push ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/my-docker-repo:latest + container: + image: my-docker-repo:latest From 256c33419dcba70ca21caab521731c9a00b5cf8e Mon Sep 17 00:00:00 2001 From: akannan1087 <15877864+akannan1087@users.noreply.github.com> Date: Sat, 20 Jan 2024 21:40:32 -0600 Subject: [PATCH 09/57] Update cicd.yaml --- .github/workflows/cicd.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index 7e559e8..055d586 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -21,5 +21,3 @@ jobs: aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username AWS --password-stdin ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com - name: Push Docker image to ECR run: docker push ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/my-docker-repo:latest - container: - image: my-docker-repo:latest From abcbc6d8d699a899289fbb1d1c510e445137636f Mon Sep 17 00:00:00 2001 From: akannan1087 <15877864+akannan1087@users.noreply.github.com> Date: Sun, 11 Feb 2024 12:45:40 -0600 Subject: [PATCH 10/57] making some code changes --- templates/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/index.html b/templates/index.html index ca5261a..f69f53d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,7 +3,7 @@