From 61366b1dc1f58bf017764d2b91175ee6263a0ca3 Mon Sep 17 00:00:00 2001 From: Rachid F <109089247+rflihxyz@users.noreply.github.com> Date: Tue, 5 Dec 2023 13:27:59 +0000 Subject: [PATCH] :white_check_mark: Docker build on backend changes Docker build on backend changes --- .github/workflows/docker.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 000000000..1c7cf76ab --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,24 @@ +name: Docker Build - Backend + +on: + push: + paths: + - 'packages/api/**' # Specify the path to your subfolder + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Docker + uses: docker/setup-docker@v2 + with: + dockerfile: packages/api/Dockerfile # Specify the path to your Dockerfile + + - name: Build Docker image + run: docker build -t panora-backend-api:latest packages/api/ \ No newline at end of file