Skip to content

Commit 0712479

Browse files
committed
add config to workflow
1 parent d718f91 commit 0712479

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

samples/nocodb/.github/workflows/deploy.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,13 @@ jobs:
1717
uses: actions/checkout@v4
1818

1919
- name: Deploy
20-
uses: DefangLabs/[email protected]
20+
uses: DefangLabs/[email protected]
21+
with:
22+
config-env-vars: NC_DB NC_S3_ENDPOINT NC_S3_BUCKET_NAME NC_S3_REGION NC_S3_ACCESS_KEY NC_S3_ACCESS_SECRET
23+
env:
24+
NC_DB: ${{ secrets.NC_DB }}
25+
NC_S3_ENDPOINT: ${{ secrets.NC_S3_ENDPOINT }}
26+
NC_S3_BUCKET_NAME: ${{ secrets.NC_S3_BUCKET_NAME }}
27+
NC_S3_REGION: ${{ secrets.NC_S3_REGION }}
28+
NC_S3_ACCESS_KEY: ${{ secrets.NC_S3_ACCESS_KEY }}
29+
NC_S3_ACCESS_SECRET: ${{ secrets.NC_S3_ACCESS_SECRET }}

samples/nocodb/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This sample demonstrates how to deploy a Nocodb instance with Defang. It's an op
1212

1313
## Configuration
1414

15-
For this sample, you will need to provide the following [configuration](https://docs.defang.io/docs/concepts/configuration):
15+
For this sample, you will need to provide the following [configuration](https://docs.defang.io/docs/concepts/configuration). Note that if you are using the 1-click deploy option, you can set these values as secrets in your GitHub repository and the action will automatically deploy them for you.
1616

1717
### `NC_DB`
1818
Postgres database URL. NocoDB uses an odd, custom format for this. It should look like this: `pg://my.pg.hostname.com:5432?u=postgres&p=password&d=nocodb&ssl=true`. [Neon](https://neon.tech/) has a free tier and is easy to set up.

0 commit comments

Comments
 (0)