From 45c9b5912aaf76e831f5501054b701d9c36ba0ba Mon Sep 17 00:00:00 2001 From: Aditya Anand Date: Tue, 8 Sep 2026 15:31:29 +0530 Subject: [PATCH 1/3] Create docker-image.yml --- .github/workflows/docker-image.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 000000000..3f53646d1 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,18 @@ +name: Docker Image CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) From 529cef98468cc9e3d863eb4d0c678421d14f4f7a Mon Sep 17 00:00:00 2001 From: Aditya Anand Date: Tue, 8 Sep 2026 15:32:01 +0530 Subject: [PATCH 2/3] Create main.yml --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..a8f9fd84e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1 @@ +Hello From 29c11aac16bb7619125b70cbc552803147da47a9 Mon Sep 17 00:00:00 2001 From: Aditya Anand Date: Tue, 8 Sep 2026 15:34:46 +0530 Subject: [PATCH 3/3] Update docker-image.yml --- .github/workflows/docker-image.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 3f53646d1..808717827 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -2,17 +2,20 @@ name: Docker Image CI on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] jobs: - build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Build the Docker image + run: | + docker build . \ + --file Dockerfile \ + --tag my-image-name:$(date +%s)