From 3fac548f29ba6657a031ebce41a434f781f3f37f Mon Sep 17 00:00:00 2001 From: mjas0006 Date: Mon, 8 Jul 2024 13:49:42 +1000 Subject: [PATCH] add check to build containers --- .github/workflows/ci.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c32ca3..ef705e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,4 +49,27 @@ jobs: # TODO add testing for frontend # - name: Run tests - # run: cd frontend && npm test \ No newline at end of file + # run: cd frontend && npm test + backend-build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Build backend Docker container + working-directory: backend + run: | + docker build -t backend . + + frontend-build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Build frontend Docker container + working-directory: frontend + run: | + docker build -t frontend . \ No newline at end of file