From 7b7fee228303a87e1077624f29dd64373bdcc848 Mon Sep 17 00:00:00 2001 From: ggoknar Date: Mon, 30 Oct 2023 15:16:49 +0300 Subject: [PATCH] pr number as cache, remove tags on pr --- .github/workflows/build-and-push-to-ghcr.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-push-to-ghcr.yml b/.github/workflows/build-and-push-to-ghcr.yml index 317aabb..f78374a 100644 --- a/.github/workflows/build-and-push-to-ghcr.yml +++ b/.github/workflows/build-and-push-to-ghcr.yml @@ -29,10 +29,8 @@ jobs: context: "{{defaultContext}}:server" file: Dockerfile push: false # Do not push image for PR - cache-from: type=registry,ref=ghcr.io/coqui-ai/xtts-streaming-server:cache-pr-${{ github.event.pull_request.head.sha }} - cache-to: type=registry,ref=ghcr.io/coqui-ai/xtts-streaming-server:cache-pr-${{ github.event.pull_request.head.sha }} - tags: coqui-ai/xtts-streaming-server:pr-${{ github.event.pull_request.head.sha }} - #build-args: + cache-from: type=registry,ref=ghcr.io/coqui-ai/xtts-streaming-server:cache-pr-${{ github.event.number }} + cache-to: type=registry,ref=ghcr.io/coqui-ai/xtts-streaming-server:cache-pr-${{ github.event.number }} - name: Build and Push image if: github.ref == 'refs/heads/main'