From a982cc0c779cd5455e6ef935839efd9bfa053ef0 Mon Sep 17 00:00:00 2001 From: AtharvaGhongade <152916838+AtharvaGhongade@users.noreply.github.com> Date: Sun, 21 Jun 2026 19:12:58 +0530 Subject: [PATCH 01/12] Delete CI workflow configuration Removed existing CI configuration for frontend and backend workflows. --- .github/workflows/ci.yml | 89 ---------------------------------------- 1 file changed, 89 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a9b6cdf..8b137891 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,90 +1 @@ -# Goal - I have to Lint, Build, Test the code for Frontend & Backend -# then Push the images to DockerHub -name: CI -on: - push: - branches: [master] - -jobs: - frontend: - # Github runner - runs-on: ubuntu-latest - steps: - - name: Checkout Code - uses: actions/checkout@v7 - - - name: Setup NodeJs - uses: actions/setup-node@v6 - with: - node-version: '20' - cache: npm - cache-dependency-path: frontend/package-lock.json - - - name: Install npm Packages - run: npm install - working-directory: frontend - - - name: Run Linter - run: npm run lint - working-directory: frontend - - - name: Run Tests - run: npm run test - working-directory: frontend - - - name: Docker Setup [Login] - uses: docker/login-action@v4 - with: - username: ${{ vars.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Docker Build and Push - uses: docker/build-push-action@v7 - with: - context: ./frontend - push: true - tags: ${{ vars.DOCKERHUB_USERNAME }}/devboard-frontend:latest - - backend: - # Github runner - runs-on: ubuntu-latest - steps: - - name: Checkout Code - uses: actions/checkout@v7 - - - name: Setup Go - uses: actions/setup-go@v6 - with: - go-version: '1.23' - go-version-file: 'go.mod' - cache-dependency-path: go.sum - - - name: Run Go Formatter - run: go fmt - working-directory: backend - - - name: Run Go Vet - run: go vet - working-directory: backend - - - name: Run Tests - run: go test - working-directory: backend - - - name: Docker Setup [Login] - uses: docker/login-action@v4 - with: - username: ${{ vars.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Docker Build and Push - uses: docker/build-push-action@v7 - with: - context: ./backend - push: true - tags: ${{ vars.DOCKERHUB_USERNAME }}/devboard-backend:latest - deploy: - needs: [frontend,backend] - uses: ./.github/workflows/cd.yml - secrets: inherit From 6e53b5b76b7aa61c5fa564e51b9decf69c8bff2c Mon Sep 17 00:00:00 2001 From: AtharvaGhongade <152916838+AtharvaGhongade@users.noreply.github.com> Date: Sun, 21 Jun 2026 19:21:26 +0530 Subject: [PATCH 02/12] Create CI workflow for Docker image build and push Added CI workflow for building and pushing Docker image. --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b137891..4176b0fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1 +1,21 @@ +# Goal: Build the image for devboard frontend and push to docker hub +name: CI +on: + push: + branches: [master] + +jobs: + code: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v7 + + - name: Docker setup [Login to Docker] + uses: docker/login-action@v4 + with: + username: ${{ vars.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Docker Build From 2d003aa8b517356d612d2ab479a896ceeba70d39 Mon Sep 17 00:00:00 2001 From: AtharvaGhongade <152916838+AtharvaGhongade@users.noreply.github.com> Date: Mon, 22 Jun 2026 22:50:45 +0530 Subject: [PATCH 03/12] Remove Docker Build step from CI workflow --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4176b0fe..6824c35f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,4 +18,3 @@ jobs: username: ${{ vars.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Docker Build From efb967ccd46949d5458603f6a3c5d9e53d519922 Mon Sep 17 00:00:00 2001 From: AtharvaGhongade <152916838+AtharvaGhongade@users.noreply.github.com> Date: Tue, 23 Jun 2026 11:04:06 +0530 Subject: [PATCH 04/12] Add Docker Build and Push step to CI workflow --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6824c35f..0cbac73b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,3 +18,9 @@ jobs: username: ${{ vars.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Docker Build and Push + uses: docker/build-push-action@v7 + with: + push: true + tags: ${{ vars.DOCKERHUB_USERNAME }}/devboard-fe-master:latest + From 0ef9ad818a334d8d3a94222550bad6bfc12bd2e1 Mon Sep 17 00:00:00 2001 From: AtharvaGhongade <152916838+AtharvaGhongade@users.noreply.github.com> Date: Tue, 23 Jun 2026 11:16:04 +0530 Subject: [PATCH 05/12] Update ci.yml --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0cbac73b..76e54e39 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,6 +21,7 @@ jobs: - name: Docker Build and Push uses: docker/build-push-action@v7 with: + context: . push: true tags: ${{ vars.DOCKERHUB_USERNAME }}/devboard-fe-master:latest From b90e87d3885723ebf5e24fc42b80fe2caf32628a Mon Sep 17 00:00:00 2001 From: AtharvaGhongade <152916838+AtharvaGhongade@users.noreply.github.com> Date: Tue, 23 Jun 2026 12:09:43 +0530 Subject: [PATCH 06/12] Update Docker build context and Dockerfile path --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 76e54e39..90c320a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,8 @@ jobs: - name: Docker Build and Push uses: docker/build-push-action@v7 with: - context: . + context: frontend + file: frontend/Dockerfile push: true tags: ${{ vars.DOCKERHUB_USERNAME }}/devboard-fe-master:latest From 59213e0407e92db899f32e2635b2c3eba357ffc5 Mon Sep 17 00:00:00 2001 From: AtharvaGhongade <152916838+AtharvaGhongade@users.noreply.github.com> Date: Tue, 23 Jun 2026 12:27:19 +0530 Subject: [PATCH 07/12] Update ci.yml --- .github/workflows/ci.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 90c320a5..600afa93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,28 @@ on: branches: [master] jobs: - code: + code-lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v7 + + - name: Set up Node js + uses: actions/setup-node@v1 + with: + node-version: 12 + + - name: Install node.js dependecies + run: npm ci + + - name: Run linters + uses: wearerequired/lint-action@v2 + with: + eslint: true + prettier: true + + build-and-push: + needs: code-lint runs-on: ubuntu-latest steps: - name: Checkout code From ff409530813626fcb529da4439dc7748ca77127c Mon Sep 17 00:00:00 2001 From: AtharvaGhongade <152916838+AtharvaGhongade@users.noreply.github.com> Date: Tue, 23 Jun 2026 12:32:11 +0530 Subject: [PATCH 08/12] Update ci.yml --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 600afa93..05a9a115 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,12 +18,14 @@ jobs: node-version: 12 - name: Install node.js dependecies + working-directory: frontend run: npm ci - name: Run linters uses: wearerequired/lint-action@v2 with: eslint: true + eslint_dir: frontend prettier: true build-and-push: From 411b277282164c575c101c6f111b26d89ab7300f Mon Sep 17 00:00:00 2001 From: AtharvaGhongade <152916838+AtharvaGhongade@users.noreply.github.com> Date: Tue, 23 Jun 2026 12:34:30 +0530 Subject: [PATCH 09/12] Update Node.js setup in CI workflow --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05a9a115..08ee4028 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,9 +13,9 @@ jobs: uses: actions/checkout@v7 - name: Set up Node js - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: - node-version: 12 + node-version: 20 - name: Install node.js dependecies working-directory: frontend From f88993f44ac1bdd6f012839fa719ef10cf2fed71 Mon Sep 17 00:00:00 2001 From: AtharvaGhongade <152916838+AtharvaGhongade@users.noreply.github.com> Date: Tue, 23 Jun 2026 12:35:46 +0530 Subject: [PATCH 10/12] Update Node.js version in CI workflow --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08ee4028..a1af3746 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Node js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 24 - name: Install node.js dependecies working-directory: frontend From 1830c42f45c86de4e6105b2e562328cf8101ce47 Mon Sep 17 00:00:00 2001 From: AtharvaGhongade <152916838+AtharvaGhongade@users.noreply.github.com> Date: Tue, 23 Jun 2026 12:38:59 +0530 Subject: [PATCH 11/12] Configure prettier directory in CI workflow Add prettier directory configuration for linting. --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a1af3746..b5eeaacc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,7 @@ jobs: with: eslint: true eslint_dir: frontend + prettier_dir: frontend prettier: true build-and-push: From aae51262edd7f23e77209094a9aefcb7af3b8d4f Mon Sep 17 00:00:00 2001 From: AtharvaGhongade <152916838+AtharvaGhongade@users.noreply.github.com> Date: Tue, 23 Jun 2026 13:01:36 +0530 Subject: [PATCH 12/12] Update CI workflow to run ESLint directly Replaced lint-action with npm run lint for ESLint. --- .github/workflows/ci.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5eeaacc..31633b3c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,14 +21,10 @@ jobs: working-directory: frontend run: npm ci - - name: Run linters - uses: wearerequired/lint-action@v2 - with: - eslint: true - eslint_dir: frontend - prettier_dir: frontend - prettier: true - + - name: Run ESLint + working-directory: frontend + run: npm run lint + build-and-push: needs: code-lint runs-on: ubuntu-latest