From e818a2944260dd3e773d6fdf187d21ebffb9c561 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Mon, 10 Oct 2022 22:36:56 +0200 Subject: [PATCH] fix: action docker file path --- .github/workflows/docker-image-backend.yml | 8 ++++---- .github/workflows/docker-image-frontend.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker-image-backend.yml b/.github/workflows/docker-image-backend.yml index 920a2ad..7d6a31d 100644 --- a/.github/workflows/docker-image-backend.yml +++ b/.github/workflows/docker-image-backend.yml @@ -4,7 +4,7 @@ on: push: branches: main paths: - - 'backend/**' + - "backend/**" jobs: build: @@ -20,6 +20,6 @@ jobs: run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin - name: build the image run: | - docker buildx build --push \ - --tag stonith404/pingvin-share-backend:latest \ - --platform linux/amd64,linux/arm64 . + cd backend && docker buildx build --push \ + --tag stonith404/pingvin-share-backend:latest \ + --platform linux/amd64,linux/arm64 . diff --git a/.github/workflows/docker-image-frontend.yml b/.github/workflows/docker-image-frontend.yml index be78705..cea4160 100644 --- a/.github/workflows/docker-image-frontend.yml +++ b/.github/workflows/docker-image-frontend.yml @@ -4,7 +4,7 @@ on: push: branches: main paths: - - 'frontend/**' + - "frontend/**" jobs: build: @@ -20,6 +20,6 @@ jobs: run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin - name: build the image run: | - docker buildx build --push \ - --tag stonith404/pingvin-share-frontend:latest \ - --platform linux/amd64,linux/arm64 . + cd frontend && docker buildx build --push \ + --tag stonith404/pingvin-share-frontend:latest \ + --platform linux/amd64,linux/arm64 .