From c876f29a3e63b6764f517e90666ba41a8c5b19d0 Mon Sep 17 00:00:00 2001 From: Vesa Jolkkonen Date: Wed, 6 Mar 2024 09:12:00 +0200 Subject: [PATCH] Build images before e2e tests --- .github/workflows/test.yaml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index bd14f689..83560e72 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -21,4 +21,24 @@ jobs: working-directory: ./frontend run: | npm ci - npm run lint + npm run lint + + - name: Build backend + id: build-backend + uses: redhat-actions/buildah-build@v2 + with: + image: backend + tags: latest ${{ github.sha }} + context: backend/ + containerfiles: | + backend/Dockerfile + + - name: Build frontend + id: build-frontend + uses: redhat-actions/buildah-build@v2 + with: + image: frontend + tags: latest ${{ github.sha }} + context: frontend/ + containerfiles: | + frontend/Dockerfile