-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(deploy): simplify Docker build and deployment config
- Loading branch information
Showing
1 changed file
with
2 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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/[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 }} |