Skip to content

Commit 77a831c

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

2 files changed

Lines changed: 23 additions & 20 deletions

File tree

.github/workflows/review-apps.yml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,35 @@ 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:
14-
- uses: ptah-sh/deploy-review-app-action@v1.0.0
13+
- uses: ptah-sh/deploy-review-app-action@v1.1.1
1514
with:
15+
githubToken: ${{ secrets.GITHUB_TOKEN }}
1616
apiKey: ${{ secrets.PTAH_API_KEY }}
17-
service: example_nodejs_nixpacks
17+
service: example_nodejs_nixpacks_creative_rabbit_60
1818
ref: ${{ github.event.pull_request.head.ref }}
1919
refUrl: ${{ github.event.pull_request.html_url }}
2020
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
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: 443
31+
path: /*
32+
domain: pr-${{ github.event.pull_request.number }}-example-nodejs-nixpacks.ptah.sh
3233
worker: |
33-
- name: main
34-
source:
35-
type: git_with_nixpacks
36-
nixpacks:
37-
repo: ${{ github.event.pull_request.head.repo.git_url }}
34+
name: main
35+
source:
36+
type: git_with_nixpacks
37+
nixpacks:
38+
repo: git@github.com:${{ github.event.pull_request.head.repo.owner.login }}/${{ github.event.pull_request.head.repo.name }}.git
3839
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+
cmd = "node index.mjs"

0 commit comments

Comments
 (0)