Skip to content

Commit

Permalink
ci(deploy): simplify Docker build and deployment config
Browse files Browse the repository at this point in the history
  • Loading branch information
fedosov committed Jan 6, 2025
1 parent e9865b4 commit eecf7cb
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ jobs:

- name: 🐳 Set up Docker Buildx
uses: docker/[email protected]
with:
platforms: linux/amd64
driver-opts: |
image=moby/buildkit:latest
network=host

# Setup cache
- name: ⚡️ Cache Docker layers
Expand All @@ -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.
Expand Down Expand Up @@ -103,6 +93,6 @@ jobs:
- name: 🚀 Deploy Production
uses: superfly/[email protected]
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 }}

0 comments on commit eecf7cb

Please sign in to comment.