chore: update fly-review.yml

This commit is contained in:
JasterV 2026-01-14 12:09:44 +01:00
parent 510ce7b143
commit a720e23e84

View file

@ -8,6 +8,7 @@ env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
FLY_REGION: ams
FLY_ORG: personal
APP_NAME: pr-${{ github.event.pull_request.number }}-jasterv-spazio-solazzo
jobs:
review_app:
@ -28,14 +29,24 @@ jobs:
steps:
- name: Get code
uses: actions/checkout@v4
- name: Build elixir image
run: docker build -t custom-image-elixir:1.19 -f Dockerfile .
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Install flyctl CLI
uses: superfly/flyctl-actions/setup-flyctl@master
- name: Authenticate with Fly.io registry
run: flyctl auth docker
- name: Create Fly App before pushing docker image to registry
run: |
flyctl apps create ${{ env.APP_NAME }} --org ${{ env.FLY_ORG }} || true
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
push: true
tags: registry.fly.io/${{ env.APP_NAME }}:1.19
context: .
- name: Deploy PR app to Fly.io
id: deploy
uses: superfly/fly-pr-review-apps@1.5.0
with:
name: "pr-${{ github.event.pull_request.number }}-jasterv-spazio-solazzo"
image: custom-image-elixir:1.19
name: ${{ env.APP_NAME }}
config: fly.review.toml