From ed7a886a36b69ceb690df3d1754b345e654aff5c Mon Sep 17 00:00:00 2001 From: ggoknar Date: Mon, 30 Oct 2023 14:12:38 +0300 Subject: [PATCH] only push main builds --- .github/workflows/build-and-push-to-ghcr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-push-to-ghcr.yml b/.github/workflows/build-and-push-to-ghcr.yml index 413e9e6..da288d8 100644 --- a/.github/workflows/build-and-push-to-ghcr.yml +++ b/.github/workflows/build-and-push-to-ghcr.yml @@ -34,8 +34,8 @@ jobs: uses: docker/build-push-action@v5 with: file: server/Dockerfile - push: true + push: ${{ env.RELEASE_VERSION }}=="main" 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 - tags: coqui-ai/xtts-streaming-server:latest, ${{ GHCR_URL }}:${{ env.RELEASE_VERSION }}-${{ github.sha }} + tags: coqui-ai/xtts-streaming-server:latest #build-args: