From eecf7cb9f17ba101b21a050cf556320e83a9e96b Mon Sep 17 00:00:00 2001 From: Mikhail Fedosov Date: Mon, 6 Jan 2025 23:48:19 +0400 Subject: [PATCH] ci(deploy): simplify Docker build and deployment config --- .github/workflows/deploy.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2032355..66f8d46 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -32,11 +32,6 @@ jobs: - name: 🐳 Set up Docker Buildx uses: docker/setup-buildx-action@v3.8.0 - with: - platforms: linux/amd64 - driver-opts: | - image=moby/buildkit:latest - network=host # Setup cache - name: ⚡️ Cache Docker layers @@ -62,13 +57,8 @@ jobs: tags: registry.fly.io/${{ steps.app_name.outputs.value }}:${{ github.ref_name }}-${{ github.sha }} build-args: | COMMIT_SHA=${{ github.sha }} - cache-from: | - type=local,src=/tmp/.buildx-cache - type=registry,ref=registry.fly.io/${{ steps.app_name.outputs.value }}:latest + cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new - platforms: linux/amd64 - provenance: false - outputs: type=registry,compression=zstd,compression-level=3,force-compression=true # This ugly bit is necessary if you don't want your cache to grow forever # till it hits GitHub's limit of 5GB. @@ -103,6 +93,6 @@ jobs: - name: 🚀 Deploy Production uses: superfly/flyctl-actions@1.5 with: - args: "deploy --image registry.fly.io/${{ steps.app_name.outputs.value }}:${{ github.ref_name }}-${{ github.sha }} --strategy immediate" + args: "deploy --image registry.fly.io/${{ steps.app_name.outputs.value }}:${{ github.ref_name }}-${{ github.sha }}" env: FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}