Deploy pnpm-fastify to Fly.io #4
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
name: Deploy pnpm-fastify to Fly.io | |
on: | |
workflow_dispatch: {} | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
deploy: | |
runs-on: ubuntu-22.04 | |
env: | |
FLY_ACCESS_TOKEN: ${{ secrets.FLY_ACCESS_TOKEN }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install flyctl | |
uses: superfly/flyctl-actions/setup-flyctl@master | |
- name: Login to Fly registry | |
run: flyctl auth docker | |
- name: Set up Depot CLI | |
uses: depot/setup-action@v1 | |
- name: Build and push image | |
uses: depot/build-push-action@v1 | |
with: | |
context: ./node/pnpm-fastify | |
platforms: linux/amd64 | |
push: true | |
tags: registry.fly.io/depot-examples-pnpm-fastify:latest | |
- name: Deploy to Fly.io | |
run: flyctl deploy --image registry.fly.io/depot-examples-pnpm-fastify:latest |