Skip to content

Commit

Permalink
update action and allow users to switch provider from action
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaeltm committed Oct 2, 2024
1 parent 6b5a43e commit 0263bb7
Show file tree
Hide file tree
Showing 54 changed files with 265 additions and 53 deletions.
6 changes: 5 additions & 1 deletion samples/angular-express/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/bullmq-bullboard-redis/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/csharp-dotnet/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/django-postgres/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/django/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/elysia/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/fastapi-postgres/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/fastapi/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/feathersjs/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/flask/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/golang-http-form/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/golang-http/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/golang-mongodb-atlas/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/golang-openai/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/golang-rest-api/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/golang-s3/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/golang-slackbot/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/hasura/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/huginn/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/imgproxy/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/javalin/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/langchain/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/metabase/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/nextjs-blog/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/nextjs-documentation/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
5 changes: 4 additions & 1 deletion samples/nextjs-postgres/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected].0
uses: DefangLabs/[email protected].3
with:
config-env-vars: POSTGRES_PASSWORD
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
6 changes: 5 additions & 1 deletion samples/nextjs/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
5 changes: 4 additions & 1 deletion samples/nocodb/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected].0
uses: DefangLabs/[email protected].3
with:
config-env-vars: NC_DB NC_S3_ENDPOINT NC_S3_BUCKET_NAME NC_S3_REGION NC_S3_ACCESS_KEY NC_S3_ACCESS_SECRET
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
NC_DB: ${{ secrets.NC_DB }}
NC_S3_ENDPOINT: ${{ secrets.NC_S3_ENDPOINT }}
NC_S3_BUCKET_NAME: ${{ secrets.NC_S3_BUCKET_NAME }}
Expand Down
6 changes: 5 additions & 1 deletion samples/nodejs-chatroom/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/nodejs-express/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/nodejs-form/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
6 changes: 5 additions & 1 deletion samples/nodejs-http/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
# Use the GitHub Variables (https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables)
# to switch between providers. You'll need to make sure to also set the corresponding secrets for the provider you want to use.
DEFANG_PROVIDER: ${{ vars.DEFANG_PROVIDER || 'auto' }}
Loading

0 comments on commit 0263bb7

Please sign in to comment.