Skip to content

Commit 1d6015f

Browse files
committed
feat: add missing nixpacks.toml
1 parent f58040e commit 1d6015f

2 files changed

Lines changed: 19 additions & 18 deletions

File tree

.github/workflows/review-apps.yml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,33 @@ on:
55
- reopened
66
- synchronize
77
- closed
8-
8+
99
jobs:
1010
deploy-review-app:
11-
if: contains(github.actor, fromJson('["bohdan-shulha", "dependabot[bot]", "github-actions[bot]"]'))
1211
runs-on: ubuntu-latest
1312
steps:
1413
- uses: ptah-sh/deploy-review-app-action@v1.0.0
1514
with:
1615
apiKey: ${{ secrets.PTAH_API_KEY }}
17-
service: example_nodejs_nixpacks
16+
service: example_nodejs_nixpacks_creative_rabbit_60
1817
ref: ${{ github.event.pull_request.head.ref }}
1918
refUrl: ${{ github.event.pull_request.html_url }}
2019
process: |
21-
- name: myapp
22-
envVars:
23-
- name: APP_ENV
24-
value: review
25-
- name: MESSAGE
26-
value: "Hello from GitHub Actions!\n\n${{ github.event.pull_request.title }}\n\n${{ github.event.pull_request.body }}\n\n${{ github.event.pull_request.head.ref }}"
27-
caddy:
28-
- targetPort: 80
29-
targetProtocol: http
30-
publishedPort: 80
31-
domain: pr-${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.repo.name }}.ptah.sh
20+
name: myapp
21+
envVars:
22+
- name: APP_ENV
23+
value: review
24+
- name: MESSAGE
25+
value: "Hello from GitHub Actions!\n\n${{ github.event.pull_request.title }}\n\n${{ github.event.pull_request.body }}\n\n${{ github.event.pull_request.head.ref }}"
26+
caddy:
27+
- targetPort: 80
28+
targetProtocol: http
29+
publishedPort: 80
30+
domain: pr-${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.repo.name }}.ptah.sh
3231
worker: |
33-
- name: main
34-
source:
35-
type: git_with_nixpacks
36-
nixpacks:
32+
name: main
33+
source:
34+
type: git_with_nixpacks
35+
nixpacks:
3736
repo: ${{ github.event.pull_request.head.repo.git_url }}
3837
ref: ${{ github.event.pull_request.head.ref }}

nixpacks.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[start]
2+
command = "node index.mjs"

0 commit comments

Comments
 (0)