Skip to content

Commit

Permalink
Merge pull request #64 from elh/b/fly-docker-image
Browse files Browse the repository at this point in the history
export Docker image locally for Fly.io deploy
  • Loading branch information
elh authored Jan 23, 2023
2 parents 1b0bd2d + 2d73bbe commit 825ceb2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Build Docker image and save locally for Fly.io deploy
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
outputs: type=image,name=${{ env.IMAGE_NAME }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- uses: superfly/flyctl-actions/setup-flyctl@master
- name: "Deploy to Fly.io"
run: flyctl deploy --local-only --image ${{ env.IMAGE_NAME }}:main

0 comments on commit 825ceb2

Please sign in to comment.