From ca7f8c082d84ed56ff9e1e68b14ce6fd5f1cdcf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikolas=20G=C3=B6rlitz?= Date: Thu, 11 Apr 2024 15:36:20 +0200 Subject: [PATCH] Update dev.yml --- .github/workflows/dev.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index a6d90c5..20a2d03 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -6,7 +6,8 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} + IMAGE_NAME_BACKEND: ${{ github.repository }}-backend + IMAGE_NAME_FRONTEND: ${{ github.repository }}-frontend jobs: build-backend: @@ -28,8 +29,8 @@ jobs: - name: Build and push Docker image run: | - docker build --pull -t ${{ env.REGISTRY }}/${{ github.repository }}-backend:latest -f backend.Dockerfile . - docker push ${{ env.REGISTRY }}/${{ github.repository }}-backend:latest + docker build --pull -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_BACKEND }}-backend:latest -f backend.Dockerfile . + docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_BACKEND }}-backend:latest build-frontend: runs-on: ubuntu-latest @@ -50,5 +51,5 @@ jobs: - name: Build and push Docker image run: | - docker build --pull -t ${{ env.REGISTRY }}/${{ github.repository }}-frontend:latest -f frontend.Dockerfile . - docker push ${{ env.REGISTRY }}/${{ github.repository }}-frontend:latest \ No newline at end of file + docker build --pull -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_FRONTEND }}-frontend:latest -f frontend.Dockerfile . + docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_FRONTEND }}-frontend:latest \ No newline at end of file