mirror of
https://codeberg.org/JasterV/spazio-solazzo.git
synced 2026-04-26 18:20:03 +00:00
chore: update fly-review.yml
This commit is contained in:
parent
510ce7b143
commit
a720e23e84
1 changed files with 17 additions and 6 deletions
23
.github/workflows/fly-review.yml
vendored
23
.github/workflows/fly-review.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue