From 318d1b1eaf0aee8129af90e152e877204d85041c Mon Sep 17 00:00:00 2001 From: tylen Date: Sat, 17 May 2025 22:00:02 +0300 Subject: [PATCH 1/2] ci: set up docker build on pr --- .github/workflows/build.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..cce6302 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,13 @@ +name: Docker Image CI + +on: + 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 portnote:$(date +%s) \ No newline at end of file From a443812864c4f82431385264d71fb6607cb396dc Mon Sep 17 00:00:00 2001 From: tylen Date: Sat, 17 May 2025 22:00:02 +0300 Subject: [PATCH 2/2] ci: set up docker build on pr --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cce6302..3a1ea1f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Docker Image CI +name: Build Docker Image on PR on: pull_request: