Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
update action and allow users to switch provider from action
  • Loading branch information
raphaeltm committed Oct 2, 2024
commit 0263bb77191519561732f638ec55db76acdb30f3
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]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.2.0 is the latest

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' }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine, but it's the first such variable that we use. Why wouldn't we add it as a param to the action? Seems more explicit that a hidden env var.

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
Loading