Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to switch provider with GH Actions #214

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
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 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.
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.

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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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' }}
4 changes: 3 additions & 1 deletion samples/html-css-js/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ jobs:
uses: actions/checkout@v4

- name: Deploy
uses: DefangLabs/[email protected]
uses: DefangLabs/[email protected]
env:
DEFANG_PROVIDER: ${{ secrets.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 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 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 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 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 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 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 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 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 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 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 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 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 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 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