From 4df204024749a59a568c769e988da08d757a59fb Mon Sep 17 00:00:00 2001 From: Phoenix Pereira <47909638+phoenixpereira@users.noreply.github.com> Date: Thu, 5 Sep 2024 21:02:28 +0930 Subject: [PATCH] fix(ci): Output tar file correctly (#189) --- .github/workflows/production.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 5f1e3996..7f191139 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -57,15 +57,16 @@ jobs: run: | docker buildx build \ --platform linux/arm64 \ - --tag csclub-website:latest \ --cache-from=type=local,src=/tmp/.buildx-cache \ --cache-to=type=local,dest=/tmp/.buildx-cache-new,mode=max \ --secret id=DATABASE_URL \ --secret id=REDIS_URI \ --secret id=NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY \ --secret id=NEXT_PUBLIC_DRIVE_LINK \ - --file=Dockerfile -t csclub-website . - docker image save csclub-website | gzip > csclub-website.tar.gz + --file=Dockerfile \ + --tag csclub-website:latest \ + --output type=tar,dest=csclub-website.tar.gz \ + . - name: Save Docker cache if: success()