From 93f6fd7a945cf2e560895924bcd09689c6b838e1 Mon Sep 17 00:00:00 2001 From: Abder Date: Sun, 7 Jul 2024 00:29:00 +0200 Subject: [PATCH] Update docker-build-and-push.yml --- .github/workflows/docker-build-and-push.yml | 22 ++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/docker-build-and-push.yml b/.github/workflows/docker-build-and-push.yml index 21bbd018d..391f11c09 100644 --- a/.github/workflows/docker-build-and-push.yml +++ b/.github/workflows/docker-build-and-push.yml @@ -43,9 +43,19 @@ jobs: cp .meta ./backend/ cp .meta ./backend/ciso_assistant/ + - name: Build and Push Frontend Docker Image + uses: docker/build-push-action@v6 + with: + context: ./frontend + file: ./frontend/Dockerfile + push: true + tags: | + ghcr.io/${{ github.repository }}/frontend:${{ env.VERSION }} + ghcr.io/${{ github.repository }}/frontend:latest + platforms: linux/amd64,linux/arm64,linux/arm64/v8 - name: Build and Push Backend Docker Image - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: context: ./backend file: ./backend/Dockerfile @@ -55,13 +65,3 @@ jobs: ghcr.io/${{ github.repository }}/backend:latest platforms: linux/amd64,linux/arm64,linux/arm64/v8 - - name: Build and Push Frontend Docker Image - uses: docker/build-push-action@v5 - with: - context: ./frontend - file: ./frontend/Dockerfile - push: true - tags: | - ghcr.io/${{ github.repository }}/frontend:${{ env.VERSION }} - ghcr.io/${{ github.repository }}/frontend:latest - platforms: linux/amd64,linux/arm64,linux/arm64/v8