From 254bdd4b50c0bdec03faf057430be8a270039694 Mon Sep 17 00:00:00 2001 From: ggoknar Date: Mon, 30 Oct 2023 14:24:10 +0300 Subject: [PATCH] use workdir --- .github/workflows/build-and-push-to-ghcr.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-push-to-ghcr.yml b/.github/workflows/build-and-push-to-ghcr.yml index c600600..d1c73e1 100644 --- a/.github/workflows/build-and-push-to-ghcr.yml +++ b/.github/workflows/build-and-push-to-ghcr.yml @@ -33,8 +33,9 @@ jobs: - name: Build only for PR if: github.ref != 'refs/heads/main' uses: docker/build-push-action@v5 + working-directory: ./server with: - file: ./server/Dockerfile + file: Dockerfile push: false cache-from: type=registry,ref=ghcr.io/coqui-ai/xtts-streaming-server:latest cache-to: type=registry,ref=ghcr.io/coqui-ai/xtts-streaming-server:latest @@ -44,8 +45,9 @@ jobs: - name: Build and Push image if: github.ref == 'refs/heads/main' uses: docker/build-push-action@v5 + working-directory: ./server with: - file: server/Dockerfile + file: Dockerfile push: false cache-from: type=registry,ref=ghcr.io/coqui-ai/xtts-streaming-server:latest cache-to: type=registry,ref=ghcr.io/coqui-ai/xtts-streaming-server:latest