From 3ceab1ff6e2b9d46b797fbd76ceec304d6ec7790 Mon Sep 17 00:00:00 2001 From: Saurabh Suman <126504703+UpgradSaurabh@users.noreply.github.com> Date: Thu, 25 Jun 2026 11:18:11 +0530 Subject: [PATCH 1/3] Create CI workflow for DevBoard Frontend Add CI workflow for building and pushing Docker image --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..b983775d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +# Goal: Build the image for DevBoard Frontend and Push to Docker Hub +name: CI + +on: + push: + branches: [master] +# We are putting all the steps like git code clone and docker setup under one job becasue we are running github runner to perfrom those steps +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v7 + + - name: Docker Setup [Login] + uses: docker/login-action@v4 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + + From d36d1db311de8526f0de1b2cd52597e81b2b038f Mon Sep 17 00:00:00 2001 From: Saurabh Suman <126504703+UpgradSaurabh@users.noreply.github.com> Date: Thu, 25 Jun 2026 12:02:41 +0530 Subject: [PATCH 2/3] Change DockerHub username secret to variable --- .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 b983775d..81a0f952 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: - name: Docker Setup [Login] uses: docker/login-action@v4 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} + username: ${{ vars.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} From d0d1798489f9cacb68cbca40bf7a05d9fec4fc71 Mon Sep 17 00:00:00 2001 From: Saurabh Suman <126504703+UpgradSaurabh@users.noreply.github.com> Date: Thu, 25 Jun 2026 12:39:07 +0530 Subject: [PATCH 3/3] Integrate Docker build and push in CI Add Docker build and push step to CI workflow --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81a0f952..51ed1872 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,5 +18,10 @@ jobs: username: ${{ vars.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - + - name: Docker build and push + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: ${{ vars.DOCKERHUB_USERNAME }}/devboard-fe-master:latest