From dfe03fba9c2767903883c883588ef4785c831b8c Mon Sep 17 00:00:00 2001 From: Jordan Stephens Date: Fri, 23 Jan 2026 10:41:26 -0800 Subject: [PATCH 01/22] update samples to use "production" environment by default --- .../.github/workflows/deploy.yaml | 18 ++++++------ .../.github/workflows/deploy.yaml | 18 ++++++------ .../.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- samples/crewai/.github/workflows/deploy.yaml | 22 +++++++-------- .../.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 20 ++++++------- .../.github/workflows/deploy.yaml | 22 +++++++-------- .../.github/workflows/deploy.yaml | 10 +++---- samples/django/.github/workflows/deploy.yaml | 10 +++---- samples/elysia/.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 20 ++++++------- .../.github/workflows/deploy.yaml | 10 +++---- samples/fastapi/.github/workflows/deploy.yaml | 10 +++---- .../feathersjs/.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- samples/flask/.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- .../golang-http/.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- .../golang-s3/.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- samples/hasura/.github/workflows/deploy.yaml | 10 +++---- .../html-css-js/.github/workflows/deploy.yaml | 10 +++---- samples/huginn/.github/workflows/deploy.yaml | 10 +++---- .../imgproxy/.github/workflows/deploy.yaml | 10 +++---- samples/javalin/.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 20 ++++++------- .../langchain/.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- .../managed-llm/.github/workflows/deploy.yaml | 18 ++++++------ .../.github/workflows/deploy.yaml | 2 +- samples/mcp/.github/workflows/deploy.yaml | 18 ++++++------ .../metabase/.github/workflows/deploy.yaml | 10 +++---- samples/n8n/.github/workflows/deploy.yaml | 2 +- .../nextjs-blog/.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 18 ++++++------ .../nextjs-cv/.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 2 +- .../.github/workflows/deploy.yaml | 10 +++---- samples/nextjs/.github/workflows/deploy.yaml | 10 +++---- samples/nocodb/.github/workflows/deploy.yaml | 28 +++++++++---------- .../.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- .../nodejs-form/.github/workflows/deploy.yaml | 10 +++---- .../nodejs-http/.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- .../nodejs-s3/.github/workflows/deploy.yaml | 10 +++---- samples/nounly/.github/workflows/deploy.yaml | 20 ++++++------- samples/ollama/.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- .../python-form/.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- .../python-s3/.github/workflows/deploy.yaml | 10 +++---- samples/rails/.github/workflows/deploy.yaml | 18 ++++++------ .../redis-js/.github/workflows/deploy.yaml | 10 +++---- samples/rocket/.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- samples/sailsjs/.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- .../.github/workflows/deploy.yaml | 10 +++---- .../sveltekit/.github/workflows/deploy.yaml | 10 +++---- samples/vllm/.github/workflows/deploy.yaml | 10 +++---- samples/vuejs/.github/workflows/deploy.yaml | 10 +++---- starter-sample/.github/workflows/deploy.yaml | 24 ++++++++-------- 76 files changed, 440 insertions(+), 440 deletions(-) diff --git a/samples/agentic-autogen/.github/workflows/deploy.yaml b/samples/agentic-autogen/.github/workflows/deploy.yaml index 4a1f6224e..c7c2ff000 100644 --- a/samples/agentic-autogen/.github/workflows/deploy.yaml +++ b/samples/agentic-autogen/.github/workflows/deploy.yaml @@ -7,19 +7,19 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 - with: - config-env-vars: MISTRAL_API_KEY - env: - MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }} + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 + with: + config-env-vars: MISTRAL_API_KEY + env: + MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }} diff --git a/samples/agentic-langgraph/.github/workflows/deploy.yaml b/samples/agentic-langgraph/.github/workflows/deploy.yaml index 48cda6047..7c2860fe1 100644 --- a/samples/agentic-langgraph/.github/workflows/deploy.yaml +++ b/samples/agentic-langgraph/.github/workflows/deploy.yaml @@ -7,19 +7,19 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 - with: - config-env-vars: TAVILY_API_KEY - env: - TAVILY_API_KEY: ${{ secrets.TAVILY_API_KEY }} + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 + with: + config-env-vars: TAVILY_API_KEY + env: + TAVILY_API_KEY: ${{ secrets.TAVILY_API_KEY }} diff --git a/samples/agentic-strands/.github/workflows/deploy.yaml b/samples/agentic-strands/.github/workflows/deploy.yaml index 13bd872a1..b3d146782 100644 --- a/samples/agentic-strands/.github/workflows/deploy.yaml +++ b/samples/agentic-strands/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/angular-express/.github/workflows/deploy.yaml b/samples/angular-express/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/angular-express/.github/workflows/deploy.yaml +++ b/samples/angular-express/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/arduino-wifi/.github/workflows/deploy.yaml b/samples/arduino-wifi/.github/workflows/deploy.yaml index 13bd872a1..b3d146782 100644 --- a/samples/arduino-wifi/.github/workflows/deploy.yaml +++ b/samples/arduino-wifi/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/bullmq-bullboard-redis/.github/workflows/deploy.yaml b/samples/bullmq-bullboard-redis/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/bullmq-bullboard-redis/.github/workflows/deploy.yaml +++ b/samples/bullmq-bullboard-redis/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/crewai/.github/workflows/deploy.yaml b/samples/crewai/.github/workflows/deploy.yaml index 48a0db5a0..d4f0c5b99 100644 --- a/samples/crewai/.github/workflows/deploy.yaml +++ b/samples/crewai/.github/workflows/deploy.yaml @@ -7,21 +7,21 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 - with: - config-env-vars: DJANGO_SECRET_KEY POSTGRES_PASSWORD SSL_MODE - env: - DJANGO_SECRET_KEY: ${{ secrets.DJANGO_SECRET_KEY }} - POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} - SSL_MODE: ${{ secrets.SSL_MODE }} \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 + with: + config-env-vars: DJANGO_SECRET_KEY POSTGRES_PASSWORD SSL_MODE + env: + DJANGO_SECRET_KEY: ${{ secrets.DJANGO_SECRET_KEY }} + POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} + SSL_MODE: ${{ secrets.SSL_MODE }} diff --git a/samples/csharp-dotnet/.github/workflows/deploy.yaml b/samples/csharp-dotnet/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/csharp-dotnet/.github/workflows/deploy.yaml +++ b/samples/csharp-dotnet/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/django-celery/.github/workflows/deploy.yaml b/samples/django-celery/.github/workflows/deploy.yaml index 09614864a..c6ac88d96 100644 --- a/samples/django-celery/.github/workflows/deploy.yaml +++ b/samples/django-celery/.github/workflows/deploy.yaml @@ -7,20 +7,20 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 - with: - config-env-vars: POSTGRES_PASSWORD SECRET_KEY - env: - POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} - SECRET_KEY: ${{ secrets.SECRET_KEY }} \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 + with: + config-env-vars: POSTGRES_PASSWORD SECRET_KEY + env: + POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} + SECRET_KEY: ${{ secrets.SECRET_KEY }} diff --git a/samples/django-postgres/.github/workflows/deploy.yaml b/samples/django-postgres/.github/workflows/deploy.yaml index 173777c3c..3f22e5c1d 100644 --- a/samples/django-postgres/.github/workflows/deploy.yaml +++ b/samples/django-postgres/.github/workflows/deploy.yaml @@ -7,21 +7,21 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 - with: - config-env-vars: POSTGRES_PASSWORD SECRET_KEY ALLOWED_HOSTS - env: - POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} - SECRET_KEY: ${{ secrets.SECRET_KEY }} - ALLOWED_HOSTS: ${{ secrets.ALLOWED_HOSTS }} \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 + with: + config-env-vars: POSTGRES_PASSWORD SECRET_KEY ALLOWED_HOSTS + env: + POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} + SECRET_KEY: ${{ secrets.SECRET_KEY }} + ALLOWED_HOSTS: ${{ secrets.ALLOWED_HOSTS }} diff --git a/samples/django-railpack/.github/workflows/deploy.yaml b/samples/django-railpack/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/django-railpack/.github/workflows/deploy.yaml +++ b/samples/django-railpack/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/django/.github/workflows/deploy.yaml b/samples/django/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/django/.github/workflows/deploy.yaml +++ b/samples/django/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/elysia/.github/workflows/deploy.yaml b/samples/elysia/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/elysia/.github/workflows/deploy.yaml +++ b/samples/elysia/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/fastapi-postgres-pubsub/.github/workflows/deploy.yaml b/samples/fastapi-postgres-pubsub/.github/workflows/deploy.yaml index 02aebc911..68e718c49 100644 --- a/samples/fastapi-postgres-pubsub/.github/workflows/deploy.yaml +++ b/samples/fastapi-postgres-pubsub/.github/workflows/deploy.yaml @@ -7,20 +7,20 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 - with: - config-env-vars: POSTGRES_PASSWORD SSL_MODE - env: - POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} - SSL_MODE: ${{ secrets.SSL_MODE }} \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 + with: + config-env-vars: POSTGRES_PASSWORD SSL_MODE + env: + POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} + SSL_MODE: ${{ secrets.SSL_MODE }} diff --git a/samples/fastapi-postgres/.github/workflows/deploy.yaml b/samples/fastapi-postgres/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/fastapi-postgres/.github/workflows/deploy.yaml +++ b/samples/fastapi-postgres/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/fastapi/.github/workflows/deploy.yaml b/samples/fastapi/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/fastapi/.github/workflows/deploy.yaml +++ b/samples/fastapi/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/feathersjs/.github/workflows/deploy.yaml b/samples/feathersjs/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/feathersjs/.github/workflows/deploy.yaml +++ b/samples/feathersjs/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/flask-railpack/.github/workflows/deploy.yaml b/samples/flask-railpack/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/flask-railpack/.github/workflows/deploy.yaml +++ b/samples/flask-railpack/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/flask/.github/workflows/deploy.yaml b/samples/flask/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/flask/.github/workflows/deploy.yaml +++ b/samples/flask/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/golang-http-form/.github/workflows/deploy.yaml b/samples/golang-http-form/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/golang-http-form/.github/workflows/deploy.yaml +++ b/samples/golang-http-form/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/golang-http/.github/workflows/deploy.yaml b/samples/golang-http/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/golang-http/.github/workflows/deploy.yaml +++ b/samples/golang-http/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/golang-mongodb/.github/workflows/deploy.yaml b/samples/golang-mongodb/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/golang-mongodb/.github/workflows/deploy.yaml +++ b/samples/golang-mongodb/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/golang-openai/.github/workflows/deploy.yaml b/samples/golang-openai/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/golang-openai/.github/workflows/deploy.yaml +++ b/samples/golang-openai/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/golang-railpack/.github/workflows/deploy.yaml b/samples/golang-railpack/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/golang-railpack/.github/workflows/deploy.yaml +++ b/samples/golang-railpack/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/golang-rest-api/.github/workflows/deploy.yaml b/samples/golang-rest-api/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/golang-rest-api/.github/workflows/deploy.yaml +++ b/samples/golang-rest-api/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/golang-s3/.github/workflows/deploy.yaml b/samples/golang-s3/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/golang-s3/.github/workflows/deploy.yaml +++ b/samples/golang-s3/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/golang-slackbot/.github/workflows/deploy.yaml b/samples/golang-slackbot/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/golang-slackbot/.github/workflows/deploy.yaml +++ b/samples/golang-slackbot/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/hasura/.github/workflows/deploy.yaml b/samples/hasura/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/hasura/.github/workflows/deploy.yaml +++ b/samples/hasura/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/html-css-js/.github/workflows/deploy.yaml b/samples/html-css-js/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/html-css-js/.github/workflows/deploy.yaml +++ b/samples/html-css-js/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/huginn/.github/workflows/deploy.yaml b/samples/huginn/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/huginn/.github/workflows/deploy.yaml +++ b/samples/huginn/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/imgproxy/.github/workflows/deploy.yaml b/samples/imgproxy/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/imgproxy/.github/workflows/deploy.yaml +++ b/samples/imgproxy/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/javalin/.github/workflows/deploy.yaml b/samples/javalin/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/javalin/.github/workflows/deploy.yaml +++ b/samples/javalin/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/jupyter-postgres/.github/workflows/deploy.yaml b/samples/jupyter-postgres/.github/workflows/deploy.yaml index 33f28ccf1..484a36513 100644 --- a/samples/jupyter-postgres/.github/workflows/deploy.yaml +++ b/samples/jupyter-postgres/.github/workflows/deploy.yaml @@ -7,20 +7,20 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - with: - config-env-vars: POSTGRES_PASSWORD JUPYTER_TOKEN - uses: DefangLabs/defang-github-action@v1.3.2 - env: - POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} - JUPYTER_TOKEN: ${{ secrets.JUPYTER_TOKEN }} \ No newline at end of file + - name: Deploy + with: + config-env-vars: POSTGRES_PASSWORD JUPYTER_TOKEN + uses: DefangLabs/defang-github-action@v1.3.2 + env: + POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} + JUPYTER_TOKEN: ${{ secrets.JUPYTER_TOKEN }} diff --git a/samples/langchain/.github/workflows/deploy.yaml b/samples/langchain/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/langchain/.github/workflows/deploy.yaml +++ b/samples/langchain/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/managed-llm-provider/.github/workflows/deploy.yaml b/samples/managed-llm-provider/.github/workflows/deploy.yaml index 13bd872a1..b3d146782 100644 --- a/samples/managed-llm-provider/.github/workflows/deploy.yaml +++ b/samples/managed-llm-provider/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/managed-llm/.github/workflows/deploy.yaml b/samples/managed-llm/.github/workflows/deploy.yaml index dff2e86f6..f01668313 100644 --- a/samples/managed-llm/.github/workflows/deploy.yaml +++ b/samples/managed-llm/.github/workflows/deploy.yaml @@ -7,19 +7,19 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 - with: - config-env-vars: MODEL - env: - MODEL: ${{ secrets.MODEL }} \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 + with: + config-env-vars: MODEL + env: + MODEL: ${{ secrets.MODEL }} diff --git a/samples/mastra-nextjs/.github/workflows/deploy.yaml b/samples/mastra-nextjs/.github/workflows/deploy.yaml index 3b4a51368..a966ac05e 100644 --- a/samples/mastra-nextjs/.github/workflows/deploy.yaml +++ b/samples/mastra-nextjs/.github/workflows/deploy.yaml @@ -7,7 +7,7 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read diff --git a/samples/mcp/.github/workflows/deploy.yaml b/samples/mcp/.github/workflows/deploy.yaml index 3ed8a4dc9..200499716 100644 --- a/samples/mcp/.github/workflows/deploy.yaml +++ b/samples/mcp/.github/workflows/deploy.yaml @@ -7,19 +7,19 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 - with: - config-env-vars: ANTHROPIC_API_KEY - env: - ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 + with: + config-env-vars: ANTHROPIC_API_KEY + env: + ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} diff --git a/samples/metabase/.github/workflows/deploy.yaml b/samples/metabase/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/metabase/.github/workflows/deploy.yaml +++ b/samples/metabase/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/n8n/.github/workflows/deploy.yaml b/samples/n8n/.github/workflows/deploy.yaml index ca4e06983..26121bd66 100644 --- a/samples/n8n/.github/workflows/deploy.yaml +++ b/samples/n8n/.github/workflows/deploy.yaml @@ -7,7 +7,7 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read diff --git a/samples/nextjs-blog/.github/workflows/deploy.yaml b/samples/nextjs-blog/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/nextjs-blog/.github/workflows/deploy.yaml +++ b/samples/nextjs-blog/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/nextjs-claude/.github/workflows/deploy.yaml b/samples/nextjs-claude/.github/workflows/deploy.yaml index 3ed8a4dc9..200499716 100644 --- a/samples/nextjs-claude/.github/workflows/deploy.yaml +++ b/samples/nextjs-claude/.github/workflows/deploy.yaml @@ -7,19 +7,19 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 - with: - config-env-vars: ANTHROPIC_API_KEY - env: - ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 + with: + config-env-vars: ANTHROPIC_API_KEY + env: + ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} diff --git a/samples/nextjs-cv/.github/workflows/deploy.yaml b/samples/nextjs-cv/.github/workflows/deploy.yaml index 13bd872a1..b3d146782 100644 --- a/samples/nextjs-cv/.github/workflows/deploy.yaml +++ b/samples/nextjs-cv/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/nextjs-documentation/.github/workflows/deploy.yaml b/samples/nextjs-documentation/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/nextjs-documentation/.github/workflows/deploy.yaml +++ b/samples/nextjs-documentation/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/nextjs-postgres/.github/workflows/deploy.yaml b/samples/nextjs-postgres/.github/workflows/deploy.yaml index 3af9b0a6a..936f784cc 100644 --- a/samples/nextjs-postgres/.github/workflows/deploy.yaml +++ b/samples/nextjs-postgres/.github/workflows/deploy.yaml @@ -7,7 +7,7 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read diff --git a/samples/nextjs-railpack/.github/workflows/deploy.yaml b/samples/nextjs-railpack/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/nextjs-railpack/.github/workflows/deploy.yaml +++ b/samples/nextjs-railpack/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/nextjs/.github/workflows/deploy.yaml b/samples/nextjs/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/nextjs/.github/workflows/deploy.yaml +++ b/samples/nextjs/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/nocodb/.github/workflows/deploy.yaml b/samples/nocodb/.github/workflows/deploy.yaml index 0f5f1d585..602c143ab 100644 --- a/samples/nocodb/.github/workflows/deploy.yaml +++ b/samples/nocodb/.github/workflows/deploy.yaml @@ -7,24 +7,24 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 - 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: - NC_DB: ${{ secrets.NC_DB }} - NC_S3_ENDPOINT: ${{ secrets.NC_S3_ENDPOINT }} - NC_S3_BUCKET_NAME: ${{ secrets.NC_S3_BUCKET_NAME }} - NC_S3_REGION: ${{ secrets.NC_S3_REGION }} - NC_S3_ACCESS_KEY: ${{ secrets.NC_S3_ACCESS_KEY }} - NC_S3_ACCESS_SECRET: ${{ secrets.NC_S3_ACCESS_SECRET }} \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 + 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: + NC_DB: ${{ secrets.NC_DB }} + NC_S3_ENDPOINT: ${{ secrets.NC_S3_ENDPOINT }} + NC_S3_BUCKET_NAME: ${{ secrets.NC_S3_BUCKET_NAME }} + NC_S3_REGION: ${{ secrets.NC_S3_REGION }} + NC_S3_ACCESS_KEY: ${{ secrets.NC_S3_ACCESS_KEY }} + NC_S3_ACCESS_SECRET: ${{ secrets.NC_S3_ACCESS_SECRET }} diff --git a/samples/nodejs-chatroom/.github/workflows/deploy.yaml b/samples/nodejs-chatroom/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/nodejs-chatroom/.github/workflows/deploy.yaml +++ b/samples/nodejs-chatroom/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/nodejs-express/.github/workflows/deploy.yaml b/samples/nodejs-express/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/nodejs-express/.github/workflows/deploy.yaml +++ b/samples/nodejs-express/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/nodejs-form/.github/workflows/deploy.yaml b/samples/nodejs-form/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/nodejs-form/.github/workflows/deploy.yaml +++ b/samples/nodejs-form/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/nodejs-http/.github/workflows/deploy.yaml b/samples/nodejs-http/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/nodejs-http/.github/workflows/deploy.yaml +++ b/samples/nodejs-http/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/nodejs-openai/.github/workflows/deploy.yaml b/samples/nodejs-openai/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/nodejs-openai/.github/workflows/deploy.yaml +++ b/samples/nodejs-openai/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/nodejs-react-postgres/.github/workflows/deploy.yaml b/samples/nodejs-react-postgres/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/nodejs-react-postgres/.github/workflows/deploy.yaml +++ b/samples/nodejs-react-postgres/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/nodejs-rest-api/.github/workflows/deploy.yaml b/samples/nodejs-rest-api/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/nodejs-rest-api/.github/workflows/deploy.yaml +++ b/samples/nodejs-rest-api/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/nodejs-s3/.github/workflows/deploy.yaml b/samples/nodejs-s3/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/nodejs-s3/.github/workflows/deploy.yaml +++ b/samples/nodejs-s3/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/nounly/.github/workflows/deploy.yaml b/samples/nounly/.github/workflows/deploy.yaml index a2767561b..4e45ea9f1 100644 --- a/samples/nounly/.github/workflows/deploy.yaml +++ b/samples/nounly/.github/workflows/deploy.yaml @@ -7,20 +7,20 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 - with: - config-env-vars: PROJECT_HONEYPOT_KEY SHARED_SECRETS - env: - PROJECT_HONEYPOT_KEY: ${{ secrets.PROJECT_HONEYPOT_KEY }} - SHARED_SECRETS: ${{ secrets.SHARED_SECRETS }} \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 + with: + config-env-vars: PROJECT_HONEYPOT_KEY SHARED_SECRETS + env: + PROJECT_HONEYPOT_KEY: ${{ secrets.PROJECT_HONEYPOT_KEY }} + SHARED_SECRETS: ${{ secrets.SHARED_SECRETS }} diff --git a/samples/ollama/.github/workflows/deploy.yaml b/samples/ollama/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/ollama/.github/workflows/deploy.yaml +++ b/samples/ollama/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/phoenix-postgres/.github/workflows/deploy.yaml b/samples/phoenix-postgres/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/phoenix-postgres/.github/workflows/deploy.yaml +++ b/samples/phoenix-postgres/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/python-form/.github/workflows/deploy.yaml b/samples/python-form/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/python-form/.github/workflows/deploy.yaml +++ b/samples/python-form/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/python-implicit-gpu/.github/workflows/deploy.yaml b/samples/python-implicit-gpu/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/python-implicit-gpu/.github/workflows/deploy.yaml +++ b/samples/python-implicit-gpu/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/python-minimal/.github/workflows/deploy.yaml b/samples/python-minimal/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/python-minimal/.github/workflows/deploy.yaml +++ b/samples/python-minimal/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/python-openai/.github/workflows/deploy.yaml b/samples/python-openai/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/python-openai/.github/workflows/deploy.yaml +++ b/samples/python-openai/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/python-rest-api/.github/workflows/deploy.yaml b/samples/python-rest-api/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/python-rest-api/.github/workflows/deploy.yaml +++ b/samples/python-rest-api/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/python-s3/.github/workflows/deploy.yaml b/samples/python-s3/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/python-s3/.github/workflows/deploy.yaml +++ b/samples/python-s3/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/rails/.github/workflows/deploy.yaml b/samples/rails/.github/workflows/deploy.yaml index 2811f9794..f6dcdc013 100644 --- a/samples/rails/.github/workflows/deploy.yaml +++ b/samples/rails/.github/workflows/deploy.yaml @@ -7,19 +7,19 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 - with: - config-env-vars: POSTGRES_PASSWORD - env: - POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 + with: + config-env-vars: POSTGRES_PASSWORD + env: + POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} diff --git a/samples/redis-js/.github/workflows/deploy.yaml b/samples/redis-js/.github/workflows/deploy.yaml index 13bd872a1..b3d146782 100644 --- a/samples/redis-js/.github/workflows/deploy.yaml +++ b/samples/redis-js/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/rocket/.github/workflows/deploy.yaml b/samples/rocket/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/rocket/.github/workflows/deploy.yaml +++ b/samples/rocket/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/sailsjs-postgres/.github/workflows/deploy.yaml b/samples/sailsjs-postgres/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/sailsjs-postgres/.github/workflows/deploy.yaml +++ b/samples/sailsjs-postgres/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/sailsjs/.github/workflows/deploy.yaml b/samples/sailsjs/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/sailsjs/.github/workflows/deploy.yaml +++ b/samples/sailsjs/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/svelte-mysql/.github/workflows/deploy.yaml b/samples/svelte-mysql/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/svelte-mysql/.github/workflows/deploy.yaml +++ b/samples/svelte-mysql/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/sveltekit-mongodb/.github/workflows/deploy.yaml b/samples/sveltekit-mongodb/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/sveltekit-mongodb/.github/workflows/deploy.yaml +++ b/samples/sveltekit-mongodb/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/sveltekit/.github/workflows/deploy.yaml b/samples/sveltekit/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/sveltekit/.github/workflows/deploy.yaml +++ b/samples/sveltekit/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/vllm/.github/workflows/deploy.yaml b/samples/vllm/.github/workflows/deploy.yaml index 2a70f3439..b3d146782 100644 --- a/samples/vllm/.github/workflows/deploy.yaml +++ b/samples/vllm/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/samples/vuejs/.github/workflows/deploy.yaml b/samples/vuejs/.github/workflows/deploy.yaml index 13bd872a1..b3d146782 100644 --- a/samples/vuejs/.github/workflows/deploy.yaml +++ b/samples/vuejs/.github/workflows/deploy.yaml @@ -7,15 +7,15 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 diff --git a/starter-sample/.github/workflows/deploy.yaml b/starter-sample/.github/workflows/deploy.yaml index 56d47b90d..b0e582fcc 100644 --- a/starter-sample/.github/workflows/deploy.yaml +++ b/starter-sample/.github/workflows/deploy.yaml @@ -7,22 +7,22 @@ on: jobs: deploy: - environment: playground + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 - #REMOVE_ME_AFTER_EDITING - Replace the following line with the list of environment variables you want to pass to the action - # or remove the lines if you don't need to pass any environment variables/secrets to the action - with: - config-env-vars: ENV1 ENV2 - env: - ENV1: ${{ secrets.ENV1 }} - ENV2: ${{ secrets.ENV2 }} \ No newline at end of file + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 + #REMOVE_ME_AFTER_EDITING - Replace the following line with the list of environment variables you want to pass to the action + # or remove the lines if you don't need to pass any environment variables/secrets to the action + with: + config-env-vars: ENV1 ENV2 + env: + ENV1: ${{ secrets.ENV1 }} + ENV2: ${{ secrets.ENV2 }} From aea5750ec6d3b55f41c1f3378065073df9801209 Mon Sep 17 00:00:00 2001 From: muddysound Date: Mon, 26 Jan 2026 11:51:24 -0800 Subject: [PATCH 02/22] manual down workflow --- samples/crewai/.github/workflows/down.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 samples/crewai/.github/workflows/down.yaml diff --git a/samples/crewai/.github/workflows/down.yaml b/samples/crewai/.github/workflows/down.yaml new file mode 100644 index 000000000..b0f09300a --- /dev/null +++ b/samples/crewai/.github/workflows/down.yaml @@ -0,0 +1,21 @@ +name: Down + +on: + workflow_dispatch: + +jobs: + deploy: + environment: production + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + + - name: Deploy + uses: DefangLabs/defang-github-action@v1.3.2 + with: + command: "down" From 0d522d19f4c666362559f16ea7640093d897d9ac Mon Sep 17 00:00:00 2001 From: jordanstephens Date: Tue, 27 Jan 2026 08:05:30 -0800 Subject: [PATCH 03/22] set SSL_MODE=require for crewai --- samples/crewai/compose.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/crewai/compose.yaml b/samples/crewai/compose.yaml index 2e9214777..e6bd2c1e3 100644 --- a/samples/crewai/compose.yaml +++ b/samples/crewai/compose.yaml @@ -38,7 +38,7 @@ services: - redis environment: DJANGO_SETTINGS_MODULE: config.settings - DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres?sslmode=${SSL_MODE} + DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres?sslmode=require REDIS_URL: redis://redis:6379/0 CELERY_BROKER_URL: redis://redis:6379/0 CELERY_RESULT_BACKEND: redis://redis:6379/0 @@ -70,7 +70,7 @@ services: - embedding environment: DJANGO_SETTINGS_MODULE: config.settings - DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres?sslmode=${SSL_MODE} + DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres?sslmode=require REDIS_URL: redis://redis:6379/0 OPENAI_API_KEY: defang DJANGO_SECRET_KEY: null From 01b0deb8b1045040fdec88f4f87d2bdd1a0a7db9 Mon Sep 17 00:00:00 2001 From: jordanstephens Date: Tue, 27 Jan 2026 08:07:39 -0800 Subject: [PATCH 04/22] print deployment summary in new step --- samples/crewai/.github/workflows/deploy.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/samples/crewai/.github/workflows/deploy.yaml b/samples/crewai/.github/workflows/deploy.yaml index d4f0c5b99..e1c2ad003 100644 --- a/samples/crewai/.github/workflows/deploy.yaml +++ b/samples/crewai/.github/workflows/deploy.yaml @@ -25,3 +25,7 @@ jobs: DJANGO_SECRET_KEY: ${{ secrets.DJANGO_SECRET_KEY }} POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} SSL_MODE: ${{ secrets.SSL_MODE }} + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.3.2 + with: + command: services From 7d1834b86bf513bb7d99c6e634f476f4d61b37e2 Mon Sep 17 00:00:00 2001 From: jordanstephens Date: Tue, 27 Jan 2026 08:06:07 -0800 Subject: [PATCH 05/22] crewai set config-vars-init-random --- samples/crewai/.github/workflows/deploy.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/crewai/.github/workflows/deploy.yaml b/samples/crewai/.github/workflows/deploy.yaml index e1c2ad003..96f5bde2e 100644 --- a/samples/crewai/.github/workflows/deploy.yaml +++ b/samples/crewai/.github/workflows/deploy.yaml @@ -21,6 +21,7 @@ jobs: uses: DefangLabs/defang-github-action@v1.3.2 with: config-env-vars: DJANGO_SECRET_KEY POSTGRES_PASSWORD SSL_MODE + config-vars-init-random: DJANGO_SECRET_KEY POSTGRES_PASSWORD env: DJANGO_SECRET_KEY: ${{ secrets.DJANGO_SECRET_KEY }} POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} From 0c08dd30cf4db26688ae4fad57819c55bbba8343 Mon Sep 17 00:00:00 2001 From: Jordan Stephens Date: Tue, 27 Jan 2026 10:53:09 -0800 Subject: [PATCH 06/22] Update samples/crewai/compose.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Lio李歐 --- samples/crewai/compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/crewai/compose.yaml b/samples/crewai/compose.yaml index e6bd2c1e3..3ddc2b905 100644 --- a/samples/crewai/compose.yaml +++ b/samples/crewai/compose.yaml @@ -38,7 +38,7 @@ services: - redis environment: DJANGO_SETTINGS_MODULE: config.settings - DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres?sslmode=require + DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres?sslmode=require # remove sslmode for Playground REDIS_URL: redis://redis:6379/0 CELERY_BROKER_URL: redis://redis:6379/0 CELERY_RESULT_BACKEND: redis://redis:6379/0 From 6529ef7e37bb8b8c8d55261c52041dee120ca3d1 Mon Sep 17 00:00:00 2001 From: Jordan Stephens Date: Tue, 27 Jan 2026 10:53:19 -0800 Subject: [PATCH 07/22] Update samples/crewai/compose.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Lio李歐 --- samples/crewai/compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/crewai/compose.yaml b/samples/crewai/compose.yaml index 3ddc2b905..54703c6af 100644 --- a/samples/crewai/compose.yaml +++ b/samples/crewai/compose.yaml @@ -70,7 +70,7 @@ services: - embedding environment: DJANGO_SETTINGS_MODULE: config.settings - DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres?sslmode=require + DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres?sslmode=require # remove sslmode for Playground REDIS_URL: redis://redis:6379/0 OPENAI_API_KEY: defang DJANGO_SECRET_KEY: null From fab5bdc831e389d9131e90d57ed1eefac4934e3e Mon Sep 17 00:00:00 2001 From: jordanstephens Date: Tue, 27 Jan 2026 22:14:38 -0500 Subject: [PATCH 08/22] support down from deploy workflow --- samples/crewai/.github/workflows/deploy.yaml | 18 ++++++++++++++--- samples/crewai/.github/workflows/down.yaml | 21 -------------------- 2 files changed, 15 insertions(+), 24 deletions(-) delete mode 100644 samples/crewai/.github/workflows/down.yaml diff --git a/samples/crewai/.github/workflows/deploy.yaml b/samples/crewai/.github/workflows/deploy.yaml index 96f5bde2e..7e0099e0f 100644 --- a/samples/crewai/.github/workflows/deploy.yaml +++ b/samples/crewai/.github/workflows/deploy.yaml @@ -4,9 +4,20 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action }} environment: production runs-on: ubuntu-latest permissions: @@ -17,11 +28,12 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action }} + uses: DefangLabs/defang-github-action@main with: config-env-vars: DJANGO_SECRET_KEY POSTGRES_PASSWORD SSL_MODE config-vars-init-random: DJANGO_SECRET_KEY POSTGRES_PASSWORD + command: ${{ github.event.inputs.action }} env: DJANGO_SECRET_KEY: ${{ secrets.DJANGO_SECRET_KEY }} POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} diff --git a/samples/crewai/.github/workflows/down.yaml b/samples/crewai/.github/workflows/down.yaml deleted file mode 100644 index b0f09300a..000000000 --- a/samples/crewai/.github/workflows/down.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: Down - -on: - workflow_dispatch: - -jobs: - deploy: - environment: production - runs-on: ubuntu-latest - permissions: - contents: read - id-token: write - - steps: - - name: Checkout Repo - uses: actions/checkout@v4 - - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 - with: - command: "down" From 0a152a3f52284d1ef97c93ea8b6f2391f36ca458 Mon Sep 17 00:00:00 2001 From: jordanstephens Date: Tue, 27 Jan 2026 22:14:58 -0500 Subject: [PATCH 09/22] remove 1-click button from readme --- samples/crewai/README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/samples/crewai/README.md b/samples/crewai/README.md index 0af413ea9..1212b75c5 100644 --- a/samples/crewai/README.md +++ b/samples/crewai/README.md @@ -1,7 +1,5 @@ # Crew.ai Django Sample -[![1-click-deploy](https://raw.githubusercontent.com/DefangLabs/defang-assets/main/Logos/Buttons/SVG/deploy-with-defang.svg)](https://portal.defang.dev/redirect?url=https%3A%2F%2Fgithub.com%2Fnew%3Ftemplate_name%3Dsample-crew-django-redis-postgres-template%26template_owner%3DDefangSamples) - This sample shows how to use Crew.ai with a Django application. It provides a simple web interface that allows users to input text and receive a summary of the text in real-time using Django Channels with a Redis broker. It uses Celery to handle the Crew.ai tasks in the background with Redis as a broker. It uses Postgres as the database for Django. ## Prerequisites From c591b7139ef8b555ccc2e5d687cdc2a326ce99a2 Mon Sep 17 00:00:00 2001 From: jordanstephens Date: Tue, 27 Jan 2026 22:16:31 -0500 Subject: [PATCH 10/22] generate random secrets automatically --- samples/crewai/.github/workflows/deploy.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/samples/crewai/.github/workflows/deploy.yaml b/samples/crewai/.github/workflows/deploy.yaml index 7e0099e0f..340e947fe 100644 --- a/samples/crewai/.github/workflows/deploy.yaml +++ b/samples/crewai/.github/workflows/deploy.yaml @@ -29,15 +29,14 @@ jobs: uses: actions/checkout@v4 - name: Defang ${{ github.event.inputs.action }} - uses: DefangLabs/defang-github-action@main + uses: DefangLabs/defang-github-action@v1.4.0 with: - config-env-vars: DJANGO_SECRET_KEY POSTGRES_PASSWORD SSL_MODE + cli-version: nightly # for config-vars-init-random config-vars-init-random: DJANGO_SECRET_KEY POSTGRES_PASSWORD command: ${{ github.event.inputs.action }} env: DJANGO_SECRET_KEY: ${{ secrets.DJANGO_SECRET_KEY }} POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} - SSL_MODE: ${{ secrets.SSL_MODE }} - name: Deployment Summary uses: DefangLabs/defang-github-action@v1.3.2 with: From 6059a2ec8cfb1c3bcb32aa0e53722e3ea515346c Mon Sep 17 00:00:00 2001 From: jordanstephens Date: Tue, 27 Jan 2026 22:17:48 -0500 Subject: [PATCH 11/22] rename llm service to chat --- samples/crewai/compose.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/crewai/compose.yaml b/samples/crewai/compose.yaml index 54703c6af..566b435d4 100644 --- a/samples/crewai/compose.yaml +++ b/samples/crewai/compose.yaml @@ -66,7 +66,7 @@ services: depends_on: - postgres - redis - - llm + - chat - embedding environment: DJANGO_SETTINGS_MODULE: config.settings @@ -79,7 +79,7 @@ services: reservations: cpus: '0.5' memory: 512M - llm: + chat: provider: type: model options: From 2d6570f345b978330f7352f2a09c90be19063351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lio=E6=9D=8E=E6=AD=90?= Date: Tue, 27 Jan 2026 23:58:19 -0500 Subject: [PATCH 12/22] Remove DEBUG variable from compose.yaml Removed DEBUG environment variable from configuration. --- samples/crewai/compose.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/samples/crewai/compose.yaml b/samples/crewai/compose.yaml index 566b435d4..1187ebba5 100644 --- a/samples/crewai/compose.yaml +++ b/samples/crewai/compose.yaml @@ -87,7 +87,6 @@ services: x-defang-llm: true environment: OPENAI_API_KEY: defang - DEBUG: 'true' deploy: resources: reservations: @@ -101,7 +100,6 @@ services: x-defang-llm: true environment: OPENAI_API_KEY: defang - DEBUG: 'true' deploy: resources: reservations: From 52e7b6fa72f6ed2792194182a60945894088d020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lio=E6=9D=8E=E6=AD=90?= Date: Wed, 28 Jan 2026 00:01:07 -0500 Subject: [PATCH 13/22] Update Defang GitHub Action to version 1.4.0 --- samples/crewai/.github/workflows/deploy.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/crewai/.github/workflows/deploy.yaml b/samples/crewai/.github/workflows/deploy.yaml index 340e947fe..97e0c6916 100644 --- a/samples/crewai/.github/workflows/deploy.yaml +++ b/samples/crewai/.github/workflows/deploy.yaml @@ -37,7 +37,8 @@ jobs: env: DJANGO_SECRET_KEY: ${{ secrets.DJANGO_SECRET_KEY }} POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} + - name: Deployment Summary - uses: DefangLabs/defang-github-action@v1.3.2 + uses: DefangLabs/defang-github-action@v1.4.0 with: command: services From 31a8c3a484b7cd8a7636fe17834db32014b8c0af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lio=E6=9D=8E=E6=AD=90?= Date: Wed, 28 Jan 2026 00:09:36 -0500 Subject: [PATCH 14/22] Add default action 'up' for defang job --- samples/crewai/.github/workflows/deploy.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/crewai/.github/workflows/deploy.yaml b/samples/crewai/.github/workflows/deploy.yaml index 97e0c6916..f65c81879 100644 --- a/samples/crewai/.github/workflows/deploy.yaml +++ b/samples/crewai/.github/workflows/deploy.yaml @@ -17,7 +17,7 @@ on: jobs: defang: - name: Defang ${{ github.event.inputs.action }} + name: Defang ${{ github.event.inputs.action || 'up' }} environment: production runs-on: ubuntu-latest permissions: @@ -28,12 +28,12 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Defang ${{ github.event.inputs.action }} + - name: Defang ${{ github.event.inputs.action || 'up' }} uses: DefangLabs/defang-github-action@v1.4.0 with: cli-version: nightly # for config-vars-init-random config-vars-init-random: DJANGO_SECRET_KEY POSTGRES_PASSWORD - command: ${{ github.event.inputs.action }} + command: ${{ github.event.inputs.action || 'up' }} env: DJANGO_SECRET_KEY: ${{ secrets.DJANGO_SECRET_KEY }} POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} From 561042b373279897bd41cabb44c8b6630c70e276 Mon Sep 17 00:00:00 2001 From: Lionello Lunesu Date: Wed, 28 Jan 2026 00:39:23 -0500 Subject: [PATCH 15/22] rename LLM_ to CHAT_ --- samples/crewai/app/core/ai_clients.py | 11 ++++++----- samples/crewai/app/core/custom_llm.py | 10 ++++++---- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/samples/crewai/app/core/ai_clients.py b/samples/crewai/app/core/ai_clients.py index f93e520f1..9326ebd2d 100644 --- a/samples/crewai/app/core/ai_clients.py +++ b/samples/crewai/app/core/ai_clients.py @@ -1,14 +1,16 @@ -from openai import OpenAI import os +from openai import OpenAI + + def get_llm_client(): - url = os.getenv("LLM_URL") - model = os.getenv("LLM_MODEL") + url = os.getenv("CHAT_URL") + model = os.getenv("CHAT_MODEL") # we check for url and model because these come together # with the docker runner if not url or not model: - raise ValueError("LLM_URL and LLM_MODEL must be set") + raise ValueError("CHAT_URL and CHAT_MODEL must be set") client = OpenAI(base_url=url) return client @@ -23,4 +25,3 @@ def get_embedding_client(): raise ValueError("EMBEDDING_URL and EMBEDDING_MODEL must be set") client = OpenAI(base_url=url) return client - \ No newline at end of file diff --git a/samples/crewai/app/core/custom_llm.py b/samples/crewai/app/core/custom_llm.py index 4d232343e..a98848644 100644 --- a/samples/crewai/app/core/custom_llm.py +++ b/samples/crewai/app/core/custom_llm.py @@ -1,19 +1,21 @@ +import os from typing import Any, Dict, List, Optional, Union + from crewai.llms.base_llm import BaseLLM -import os + from .ai_clients import get_llm_client -LLM_MODEL = os.getenv("LLM_MODEL") +CHAT_MODEL = os.getenv("CHAT_MODEL") class DockerRunnerLLM(BaseLLM): """ Custom LLM that uses the OpenAI-compatible API. - Implements CrewAI's BaseLLM interface. We create this because the + Implements CrewAI's BaseLLM interface. We create this because the Docker Model Runner is not yet supported by CrewAI, because LiteLLM doesn't recognize the format in which the Docker Model Runner names the models. """ - def __init__(self, model: str = LLM_MODEL): + def __init__(self, model: str = CHAT_MODEL): super().__init__(model=model) if not model or not isinstance(model, str): raise ValueError("Invalid model: must be a non-empty string") From e3ed64f078827f6ca71549e8d1887f79ea390cfd Mon Sep 17 00:00:00 2001 From: jordanstephens Date: Wed, 28 Jan 2026 10:25:32 -0500 Subject: [PATCH 16/22] rename llm service name locally --- samples/crewai/compose.local.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/crewai/compose.local.yaml b/samples/crewai/compose.local.yaml index e6f7ba35f..e18c116be 100644 --- a/samples/crewai/compose.local.yaml +++ b/samples/crewai/compose.local.yaml @@ -36,7 +36,7 @@ services: DATABASE_URL: postgres://postgres:password@postgres:5432/postgres DJANGO_SECRET_KEY: 5k6qi_gzy65bz2soxl6k(rsrw)0z3ws!zmjzsbe+wkp1ovfayg - llm: + chat: provider: type: model options: From ba5941e8580637b35bab7e8162c07bd68fa24892 Mon Sep 17 00:00:00 2001 From: jordanstephens Date: Wed, 28 Jan 2026 10:30:01 -0500 Subject: [PATCH 17/22] rename html title --- samples/crewai/app/core/templates/core/home.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/crewai/app/core/templates/core/home.html b/samples/crewai/app/core/templates/core/home.html index 6067db589..24951c8ec 100644 --- a/samples/crewai/app/core/templates/core/home.html +++ b/samples/crewai/app/core/templates/core/home.html @@ -2,7 +2,7 @@ - Defang WebSocket Demo + Defang CrewAI Demo {% load static %} From 5766c0cf0e161a69f1e8d12f9e39a448acb2e0d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lio=E6=9D=8E=E6=AD=90?= Date: Wed, 28 Jan 2026 11:04:25 -0500 Subject: [PATCH 18/22] Reduce health check intervals and timeouts --- samples/crewai/compose.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/crewai/compose.yaml b/samples/crewai/compose.yaml index 1187ebba5..95af62bf2 100644 --- a/samples/crewai/compose.yaml +++ b/samples/crewai/compose.yaml @@ -49,10 +49,10 @@ services: - curl - -f - http://localhost:8000/ - interval: 30s - timeout: 10s + interval: 5s + timeout: 2s retries: 10 - start_period: 60s + start_period: 10s deploy: resources: reservations: From bc895257404a31cffceb58f5c9cd31ef077c09c6 Mon Sep 17 00:00:00 2001 From: jordanstephens Date: Mon, 2 Feb 2026 13:22:19 -0800 Subject: [PATCH 19/22] Workflow updates * allow up/down by stack * automatically set secrets * print deployment summary --- .../.github/workflows/deploy.yaml | 27 ++++++++++-- .../.github/workflows/deploy.yaml | 27 ++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- samples/crewai/.github/workflows/deploy.yaml | 15 ++++++- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 27 ++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 41 ++++++++++++++----- samples/django/.github/workflows/deploy.yaml | 28 +++++++++++-- samples/elysia/.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 31 +++++++++++--- .../.github/workflows/deploy.yaml | 28 +++++++++++-- samples/fastapi/.github/workflows/deploy.yaml | 28 +++++++++++-- .../feathersjs/.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- samples/flask/.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../golang-http/.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../golang-s3/.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- samples/hasura/.github/workflows/deploy.yaml | 28 +++++++++++-- .../html-css-js/.github/workflows/deploy.yaml | 28 +++++++++++-- samples/huginn/.github/workflows/deploy.yaml | 28 +++++++++++-- .../imgproxy/.github/workflows/deploy.yaml | 28 +++++++++++-- samples/javalin/.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 33 +++++++++++++-- .../langchain/.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../managed-llm/.github/workflows/deploy.yaml | 27 ++++++++++-- .../.github/workflows/deploy.yaml | 30 +++++++++++--- samples/mcp/.github/workflows/deploy.yaml | 27 ++++++++++-- .../metabase/.github/workflows/deploy.yaml | 28 +++++++++++-- samples/n8n/.github/workflows/deploy.yaml | 32 +++++++++++---- .../nextjs-blog/.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 27 ++++++++++-- .../nextjs-cv/.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 37 ++++++++++++++--- .../.github/workflows/deploy.yaml | 28 +++++++++++-- samples/nextjs/.github/workflows/deploy.yaml | 28 +++++++++++-- samples/nocodb/.github/workflows/deploy.yaml | 39 +++++++++++++++--- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../nodejs-form/.github/workflows/deploy.yaml | 28 +++++++++++-- .../nodejs-http/.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../nodejs-s3/.github/workflows/deploy.yaml | 28 +++++++++++-- samples/nounly/.github/workflows/deploy.yaml | 34 +++++++++++++-- samples/ollama/.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 29 +++++++++++-- .../python-form/.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../python-s3/.github/workflows/deploy.yaml | 28 +++++++++++-- samples/rails/.github/workflows/deploy.yaml | 35 ++++++++++++++-- .../.github/workflows/deploy.yaml | 33 ++++++++++++--- samples/react/.github/workflows/deploy.yaml | 33 ++++++++++++--- .../redis-js/.github/workflows/deploy.yaml | 28 +++++++++++-- samples/rocket/.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 37 +++++++++++++++-- samples/sailsjs/.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../.github/workflows/deploy.yaml | 28 +++++++++++-- .../sveltekit/.github/workflows/deploy.yaml | 28 +++++++++++-- samples/vllm/.github/workflows/deploy.yaml | 28 +++++++++++-- samples/vuejs/.github/workflows/deploy.yaml | 28 +++++++++++-- 79 files changed, 2008 insertions(+), 265 deletions(-) diff --git a/samples/agentic-autogen/.github/workflows/deploy.yaml b/samples/agentic-autogen/.github/workflows/deploy.yaml index c7c2ff000..b4255297f 100644 --- a/samples/agentic-autogen/.github/workflows/deploy.yaml +++ b/samples/agentic-autogen/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,9 +31,16 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 with: config-env-vars: MISTRAL_API_KEY + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} env: MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/agentic-langgraph/.github/workflows/deploy.yaml b/samples/agentic-langgraph/.github/workflows/deploy.yaml index 7c2860fe1..b2d783ea9 100644 --- a/samples/agentic-langgraph/.github/workflows/deploy.yaml +++ b/samples/agentic-langgraph/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,9 +31,16 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 with: config-env-vars: TAVILY_API_KEY + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} env: TAVILY_API_KEY: ${{ secrets.TAVILY_API_KEY }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/agentic-strands/.github/workflows/deploy.yaml b/samples/agentic-strands/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/agentic-strands/.github/workflows/deploy.yaml +++ b/samples/agentic-strands/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/angular-express/.github/workflows/deploy.yaml b/samples/angular-express/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/angular-express/.github/workflows/deploy.yaml +++ b/samples/angular-express/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/arduino-wifi/.github/workflows/deploy.yaml b/samples/arduino-wifi/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/arduino-wifi/.github/workflows/deploy.yaml +++ b/samples/arduino-wifi/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/bullmq-bullboard-redis/.github/workflows/deploy.yaml b/samples/bullmq-bullboard-redis/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/bullmq-bullboard-redis/.github/workflows/deploy.yaml +++ b/samples/bullmq-bullboard-redis/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/crewai/.github/workflows/deploy.yaml b/samples/crewai/.github/workflows/deploy.yaml index f65c81879..cc9ba40da 100644 --- a/samples/crewai/.github/workflows/deploy.yaml +++ b/samples/crewai/.github/workflows/deploy.yaml @@ -14,10 +14,13 @@ on: options: - up - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: defang: - name: Defang ${{ github.event.inputs.action || 'up' }} + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -28,15 +31,23 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Defang ${{ github.event.inputs.action || 'up' }} + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} uses: DefangLabs/defang-github-action@v1.4.0 with: cli-version: nightly # for config-vars-init-random + # Defang will initialize these config vars with random secrets + # If you wish to provide your own secrets: + # 1. Set them in the repo secrets, + # 2. Remove them from the `config-vars-init-random` list + # 3. Add them to the `config-env-vars` list below config-vars-init-random: DJANGO_SECRET_KEY POSTGRES_PASSWORD + config-env-vars: SSL_MODE command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} env: DJANGO_SECRET_KEY: ${{ secrets.DJANGO_SECRET_KEY }} POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} + SSL_MODE: require - name: Deployment Summary uses: DefangLabs/defang-github-action@v1.4.0 diff --git a/samples/csharp-dotnet/.github/workflows/deploy.yaml b/samples/csharp-dotnet/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/csharp-dotnet/.github/workflows/deploy.yaml +++ b/samples/csharp-dotnet/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/django-celery/.github/workflows/deploy.yaml b/samples/django-celery/.github/workflows/deploy.yaml index c6ac88d96..fed0c0088 100644 --- a/samples/django-celery/.github/workflows/deploy.yaml +++ b/samples/django-celery/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,10 +31,16 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 with: config-env-vars: POSTGRES_PASSWORD SECRET_KEY + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} env: POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} - SECRET_KEY: ${{ secrets.SECRET_KEY }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/django-postgres/.github/workflows/deploy.yaml b/samples/django-postgres/.github/workflows/deploy.yaml index 3f22e5c1d..9f239f753 100644 --- a/samples/django-postgres/.github/workflows/deploy.yaml +++ b/samples/django-postgres/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,11 +31,18 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 with: config-env-vars: POSTGRES_PASSWORD SECRET_KEY ALLOWED_HOSTS + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} env: POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} SECRET_KEY: ${{ secrets.SECRET_KEY }} ALLOWED_HOSTS: ${{ secrets.ALLOWED_HOSTS }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/django-railpack/.github/workflows/deploy.yaml b/samples/django-railpack/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/django-railpack/.github/workflows/deploy.yaml +++ b/samples/django-railpack/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/django-redis-postgres/.github/workflows/deploy.yaml b/samples/django-redis-postgres/.github/workflows/deploy.yaml index 2befba4a6..83ea72370 100644 --- a/samples/django-redis-postgres/.github/workflows/deploy.yaml +++ b/samples/django-redis-postgres/.github/workflows/deploy.yaml @@ -4,22 +4,43 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 - with: - config-env-vars: SECRET_KEY POSTGRES_PASSWORD - env: - SECRET_KEY: ${{ secrets.SECRET_KEY }} - POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} \ No newline at end of file + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + config-env-vars: SECRET_KEY POSTGRES_PASSWORD + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + env: + SECRET_KEY: ${{ secrets.SECRET_KEY }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/django/.github/workflows/deploy.yaml b/samples/django/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/django/.github/workflows/deploy.yaml +++ b/samples/django/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/elysia/.github/workflows/deploy.yaml b/samples/elysia/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/elysia/.github/workflows/deploy.yaml +++ b/samples/elysia/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/fastapi-postgres-pubsub/.github/workflows/deploy.yaml b/samples/fastapi-postgres-pubsub/.github/workflows/deploy.yaml index 68e718c49..11b67d7a5 100644 --- a/samples/fastapi-postgres-pubsub/.github/workflows/deploy.yaml +++ b/samples/fastapi-postgres-pubsub/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,10 +31,17 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 with: - config-env-vars: POSTGRES_PASSWORD SSL_MODE + config-env-vars: SSL_MODE + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} env: POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} - SSL_MODE: ${{ secrets.SSL_MODE }} + SSL_MODE: require + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/fastapi-postgres/.github/workflows/deploy.yaml b/samples/fastapi-postgres/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/fastapi-postgres/.github/workflows/deploy.yaml +++ b/samples/fastapi-postgres/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/fastapi/.github/workflows/deploy.yaml b/samples/fastapi/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/fastapi/.github/workflows/deploy.yaml +++ b/samples/fastapi/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/feathersjs/.github/workflows/deploy.yaml b/samples/feathersjs/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/feathersjs/.github/workflows/deploy.yaml +++ b/samples/feathersjs/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/flask-railpack/.github/workflows/deploy.yaml b/samples/flask-railpack/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/flask-railpack/.github/workflows/deploy.yaml +++ b/samples/flask-railpack/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/flask/.github/workflows/deploy.yaml b/samples/flask/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/flask/.github/workflows/deploy.yaml +++ b/samples/flask/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/golang-http-form/.github/workflows/deploy.yaml b/samples/golang-http-form/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/golang-http-form/.github/workflows/deploy.yaml +++ b/samples/golang-http-form/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/golang-http/.github/workflows/deploy.yaml b/samples/golang-http/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/golang-http/.github/workflows/deploy.yaml +++ b/samples/golang-http/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/golang-mongodb/.github/workflows/deploy.yaml b/samples/golang-mongodb/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/golang-mongodb/.github/workflows/deploy.yaml +++ b/samples/golang-mongodb/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/golang-openai/.github/workflows/deploy.yaml b/samples/golang-openai/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/golang-openai/.github/workflows/deploy.yaml +++ b/samples/golang-openai/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/golang-railpack/.github/workflows/deploy.yaml b/samples/golang-railpack/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/golang-railpack/.github/workflows/deploy.yaml +++ b/samples/golang-railpack/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/golang-rest-api/.github/workflows/deploy.yaml b/samples/golang-rest-api/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/golang-rest-api/.github/workflows/deploy.yaml +++ b/samples/golang-rest-api/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/golang-s3/.github/workflows/deploy.yaml b/samples/golang-s3/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/golang-s3/.github/workflows/deploy.yaml +++ b/samples/golang-s3/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/golang-slackbot/.github/workflows/deploy.yaml b/samples/golang-slackbot/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/golang-slackbot/.github/workflows/deploy.yaml +++ b/samples/golang-slackbot/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/hasura/.github/workflows/deploy.yaml b/samples/hasura/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/hasura/.github/workflows/deploy.yaml +++ b/samples/hasura/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/html-css-js/.github/workflows/deploy.yaml b/samples/html-css-js/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/html-css-js/.github/workflows/deploy.yaml +++ b/samples/html-css-js/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/huginn/.github/workflows/deploy.yaml b/samples/huginn/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/huginn/.github/workflows/deploy.yaml +++ b/samples/huginn/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/imgproxy/.github/workflows/deploy.yaml b/samples/imgproxy/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/imgproxy/.github/workflows/deploy.yaml +++ b/samples/imgproxy/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/javalin/.github/workflows/deploy.yaml b/samples/javalin/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/javalin/.github/workflows/deploy.yaml +++ b/samples/javalin/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/jupyter-postgres/.github/workflows/deploy.yaml b/samples/jupyter-postgres/.github/workflows/deploy.yaml index 484a36513..15ce73ef0 100644 --- a/samples/jupyter-postgres/.github/workflows/deploy.yaml +++ b/samples/jupyter-postgres/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,10 +31,21 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 with: - config-env-vars: POSTGRES_PASSWORD JUPYTER_TOKEN - uses: DefangLabs/defang-github-action@v1.3.2 + # Defang will initialize these config vars with random secrets + # If you wish to provide your own secrets: + # 1. Set them in the repo secrets, + # 2. Remove them from the `config-vars-init-random` list + # 3. Add them to the `config-env-vars` list below + config-vars-init-random: JUPYTER_TOKEN POSTGRES_PASSWORD + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} env: POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} JUPYTER_TOKEN: ${{ secrets.JUPYTER_TOKEN }} + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/langchain/.github/workflows/deploy.yaml b/samples/langchain/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/langchain/.github/workflows/deploy.yaml +++ b/samples/langchain/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/managed-llm-provider/.github/workflows/deploy.yaml b/samples/managed-llm-provider/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/managed-llm-provider/.github/workflows/deploy.yaml +++ b/samples/managed-llm-provider/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/managed-llm/.github/workflows/deploy.yaml b/samples/managed-llm/.github/workflows/deploy.yaml index f01668313..b9c2dae8a 100644 --- a/samples/managed-llm/.github/workflows/deploy.yaml +++ b/samples/managed-llm/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,9 +31,16 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 with: config-env-vars: MODEL + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} env: MODEL: ${{ secrets.MODEL }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/mastra-nextjs/.github/workflows/deploy.yaml b/samples/mastra-nextjs/.github/workflows/deploy.yaml index a966ac05e..eaee7ae83 100644 --- a/samples/mastra-nextjs/.github/workflows/deploy.yaml +++ b/samples/mastra-nextjs/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,12 +31,16 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 with: config-env-vars: DB_SSL POSTGRES_PASSWORD LLM_MODEL GITHUB_TOKEN + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} env: DB_SSL: ${{ secrets.DB_SSL }} - POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} - LLM_MODEL: ${{ secrets.LLM_MODEL }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/mcp/.github/workflows/deploy.yaml b/samples/mcp/.github/workflows/deploy.yaml index 200499716..c3f39c56e 100644 --- a/samples/mcp/.github/workflows/deploy.yaml +++ b/samples/mcp/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,9 +31,16 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 with: config-env-vars: ANTHROPIC_API_KEY + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} env: ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/metabase/.github/workflows/deploy.yaml b/samples/metabase/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/metabase/.github/workflows/deploy.yaml +++ b/samples/metabase/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/n8n/.github/workflows/deploy.yaml b/samples/n8n/.github/workflows/deploy.yaml index 26121bd66..df8fbc05e 100644 --- a/samples/n8n/.github/workflows/deploy.yaml +++ b/samples/n8n/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,12 +31,16 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 with: - config-env-vars: POSTGRES_USER N8N_ENCRYPTION_KEY DB_POSTGRESDB_SSL_ENABLED DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED + config-env-vars: POSTGRES_USER N8N_ENCRYPTION_KEY DB_POSTGRESDB_SSL_ENABLED + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} env: POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} - N8N_ENCRYPTION_KEY: ${{ secrets.N8N_ENCRYPTION_KEY }} - DB_POSTGRESDB_SSL_ENABLED: ${{ secrets.DB_POSTGRESDB_SSL_ENABLED }} - DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED: ${{ secrets.DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/nextjs-blog/.github/workflows/deploy.yaml b/samples/nextjs-blog/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/nextjs-blog/.github/workflows/deploy.yaml +++ b/samples/nextjs-blog/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/nextjs-claude/.github/workflows/deploy.yaml b/samples/nextjs-claude/.github/workflows/deploy.yaml index 200499716..c3f39c56e 100644 --- a/samples/nextjs-claude/.github/workflows/deploy.yaml +++ b/samples/nextjs-claude/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,9 +31,16 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 with: config-env-vars: ANTHROPIC_API_KEY + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} env: ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/nextjs-cv/.github/workflows/deploy.yaml b/samples/nextjs-cv/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/nextjs-cv/.github/workflows/deploy.yaml +++ b/samples/nextjs-cv/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/nextjs-documentation/.github/workflows/deploy.yaml b/samples/nextjs-documentation/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/nextjs-documentation/.github/workflows/deploy.yaml +++ b/samples/nextjs-documentation/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/nextjs-postgres/.github/workflows/deploy.yaml b/samples/nextjs-postgres/.github/workflows/deploy.yaml index 936f784cc..ce14c8f12 100644 --- a/samples/nextjs-postgres/.github/workflows/deploy.yaml +++ b/samples/nextjs-postgres/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,10 +31,23 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 with: - config-env-vars: POSTGRES_PASSWORD POSTGRES_SSL + # Defang will initialize these config vars with random secrets + # If you wish to provide your own secrets: + # 1. Set them in the repo secrets, + # 2. Remove them from the `config-vars-init-random` list + # 3. Add them to the `config-env-vars` list below + config-vars-init-random: POSTGRES_PASSWORD + config-env-vars: POSTGRES_SSL + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} env: POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} - POSTGRES_SSL: ${{ secrets.POSTGRES_SSL }} + POSTGRES_SSL: require + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/nextjs-railpack/.github/workflows/deploy.yaml b/samples/nextjs-railpack/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/nextjs-railpack/.github/workflows/deploy.yaml +++ b/samples/nextjs-railpack/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/nextjs/.github/workflows/deploy.yaml b/samples/nextjs/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/nextjs/.github/workflows/deploy.yaml +++ b/samples/nextjs/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/nocodb/.github/workflows/deploy.yaml b/samples/nocodb/.github/workflows/deploy.yaml index 602c143ab..7667ebf73 100644 --- a/samples/nocodb/.github/workflows/deploy.yaml +++ b/samples/nocodb/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,14 +31,27 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 with: - config-env-vars: NC_DB NC_S3_ENDPOINT NC_S3_BUCKET_NAME NC_S3_REGION NC_S3_ACCESS_KEY NC_S3_ACCESS_SECRET + # Defang will initialize these config vars with random secrets + # If you wish to provide your own secrets: + # 1. Set them in the repo secrets, + # 2. Remove them from the `config-vars-init-random` list + # 3. Add them to the `config-env-vars` list below + config-vars-init-random: NC_S3_ACCESS_KEY NC_S3_ACCESS_SECRET + config-env-vars: NC_DB NC_S3_ENDPOINT NC_S3_BUCKET_NAME NC_S3_REGION + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} env: NC_DB: ${{ secrets.NC_DB }} + NC_S3_ACCESS_KEY: ${{ secrets.NC_S3_ACCESS_KEY }} + NC_S3_ACCESS_SECRET: ${{ secrets.NC_S3_ACCESS_SECRET }} NC_S3_ENDPOINT: ${{ secrets.NC_S3_ENDPOINT }} NC_S3_BUCKET_NAME: ${{ secrets.NC_S3_BUCKET_NAME }} NC_S3_REGION: ${{ secrets.NC_S3_REGION }} - NC_S3_ACCESS_KEY: ${{ secrets.NC_S3_ACCESS_KEY }} - NC_S3_ACCESS_SECRET: ${{ secrets.NC_S3_ACCESS_SECRET }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/nodejs-chatroom/.github/workflows/deploy.yaml b/samples/nodejs-chatroom/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/nodejs-chatroom/.github/workflows/deploy.yaml +++ b/samples/nodejs-chatroom/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/nodejs-express/.github/workflows/deploy.yaml b/samples/nodejs-express/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/nodejs-express/.github/workflows/deploy.yaml +++ b/samples/nodejs-express/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/nodejs-form/.github/workflows/deploy.yaml b/samples/nodejs-form/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/nodejs-form/.github/workflows/deploy.yaml +++ b/samples/nodejs-form/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/nodejs-http/.github/workflows/deploy.yaml b/samples/nodejs-http/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/nodejs-http/.github/workflows/deploy.yaml +++ b/samples/nodejs-http/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/nodejs-openai/.github/workflows/deploy.yaml b/samples/nodejs-openai/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/nodejs-openai/.github/workflows/deploy.yaml +++ b/samples/nodejs-openai/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/nodejs-react-postgres/.github/workflows/deploy.yaml b/samples/nodejs-react-postgres/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/nodejs-react-postgres/.github/workflows/deploy.yaml +++ b/samples/nodejs-react-postgres/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/nodejs-rest-api/.github/workflows/deploy.yaml b/samples/nodejs-rest-api/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/nodejs-rest-api/.github/workflows/deploy.yaml +++ b/samples/nodejs-rest-api/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/nodejs-s3/.github/workflows/deploy.yaml b/samples/nodejs-s3/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/nodejs-s3/.github/workflows/deploy.yaml +++ b/samples/nodejs-s3/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/nounly/.github/workflows/deploy.yaml b/samples/nounly/.github/workflows/deploy.yaml index 4e45ea9f1..2aa3e647d 100644 --- a/samples/nounly/.github/workflows/deploy.yaml +++ b/samples/nounly/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,10 +31,22 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 with: - config-env-vars: PROJECT_HONEYPOT_KEY SHARED_SECRETS + # Defang will initialize these config vars with random secrets + # If you wish to provide your own secrets: + # 1. Set them in the repo secrets, + # 2. Remove them from the `config-vars-init-random` list + # 3. Add them to the `config-env-vars` list below + config-vars-init-random: PROJECT_HONEYPOT_KEY + config-env-vars: SHARED_SECRETS + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} env: PROJECT_HONEYPOT_KEY: ${{ secrets.PROJECT_HONEYPOT_KEY }} SHARED_SECRETS: ${{ secrets.SHARED_SECRETS }} + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/ollama/.github/workflows/deploy.yaml b/samples/ollama/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/ollama/.github/workflows/deploy.yaml +++ b/samples/ollama/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/phoenix-postgres/.github/workflows/deploy.yaml b/samples/phoenix-postgres/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/phoenix-postgres/.github/workflows/deploy.yaml +++ b/samples/phoenix-postgres/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/platformatic/.github/workflows/deploy.yaml b/samples/platformatic/.github/workflows/deploy.yaml index 326b10d97..e2b8cbae0 100644 --- a/samples/platformatic/.github/workflows/deploy.yaml +++ b/samples/platformatic/.github/workflows/deploy.yaml @@ -4,9 +4,24 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + environment: production runs-on: ubuntu-latest permissions: contents: read @@ -16,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/python-form/.github/workflows/deploy.yaml b/samples/python-form/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/python-form/.github/workflows/deploy.yaml +++ b/samples/python-form/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/python-implicit-gpu/.github/workflows/deploy.yaml b/samples/python-implicit-gpu/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/python-implicit-gpu/.github/workflows/deploy.yaml +++ b/samples/python-implicit-gpu/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/python-minimal/.github/workflows/deploy.yaml b/samples/python-minimal/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/python-minimal/.github/workflows/deploy.yaml +++ b/samples/python-minimal/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/python-openai/.github/workflows/deploy.yaml b/samples/python-openai/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/python-openai/.github/workflows/deploy.yaml +++ b/samples/python-openai/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/python-rest-api/.github/workflows/deploy.yaml b/samples/python-rest-api/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/python-rest-api/.github/workflows/deploy.yaml +++ b/samples/python-rest-api/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/python-s3/.github/workflows/deploy.yaml b/samples/python-s3/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/python-s3/.github/workflows/deploy.yaml +++ b/samples/python-s3/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/rails/.github/workflows/deploy.yaml b/samples/rails/.github/workflows/deploy.yaml index f6dcdc013..befb3298f 100644 --- a/samples/rails/.github/workflows/deploy.yaml +++ b/samples/rails/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,9 +31,22 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 with: - config-env-vars: POSTGRES_PASSWORD + # Defang will initialize these config vars with random secrets + # If you wish to provide your own secrets: + # 1. Set them in the repo secrets, + # 2. Remove them from the `config-vars-init-random` list + # 3. Add them to the `config-env-vars` list below + config-vars-init-random: POSTGRES_PASSWORD + config-env-vars: "" + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} env: POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/react-vite-railpack/.github/workflows/deploy.yaml b/samples/react-vite-railpack/.github/workflows/deploy.yaml index 179979b82..e2b8cbae0 100644 --- a/samples/react-vite-railpack/.github/workflows/deploy.yaml +++ b/samples/react-vite-railpack/.github/workflows/deploy.yaml @@ -4,17 +4,40 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/react/.github/workflows/deploy.yaml b/samples/react/.github/workflows/deploy.yaml index 179979b82..e2b8cbae0 100644 --- a/samples/react/.github/workflows/deploy.yaml +++ b/samples/react/.github/workflows/deploy.yaml @@ -4,17 +4,40 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + environment: production runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Checkout Repo - uses: actions/checkout@v4 + - name: Checkout Repo + uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 \ No newline at end of file + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/redis-js/.github/workflows/deploy.yaml b/samples/redis-js/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/redis-js/.github/workflows/deploy.yaml +++ b/samples/redis-js/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/rocket/.github/workflows/deploy.yaml b/samples/rocket/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/rocket/.github/workflows/deploy.yaml +++ b/samples/rocket/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/sailsjs-postgres/.github/workflows/deploy.yaml b/samples/sailsjs-postgres/.github/workflows/deploy.yaml index b3d146782..64fc1e750 100644 --- a/samples/sailsjs-postgres/.github/workflows/deploy.yaml +++ b/samples/sailsjs-postgres/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,22 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + # Defang will initialize these config vars with random secrets + # If you wish to provide your own secrets: + # 1. Set them in the repo secrets, + # 2. Remove them from the `config-vars-init-random` list + # 3. Add them to the `config-env-vars` list below + config-vars-init-random: DATABASE_URL SESSION_SECRET + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + env: + DATABASE_URL: ${{ secrets.DATABASE_URL }} + SESSION_SECRET: ${{ secrets.SESSION_SECRET }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/sailsjs/.github/workflows/deploy.yaml b/samples/sailsjs/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/sailsjs/.github/workflows/deploy.yaml +++ b/samples/sailsjs/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/svelte-mysql/.github/workflows/deploy.yaml b/samples/svelte-mysql/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/svelte-mysql/.github/workflows/deploy.yaml +++ b/samples/svelte-mysql/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/sveltekit-mongodb/.github/workflows/deploy.yaml b/samples/sveltekit-mongodb/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/sveltekit-mongodb/.github/workflows/deploy.yaml +++ b/samples/sveltekit-mongodb/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/sveltekit/.github/workflows/deploy.yaml b/samples/sveltekit/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/sveltekit/.github/workflows/deploy.yaml +++ b/samples/sveltekit/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/vllm/.github/workflows/deploy.yaml b/samples/vllm/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/vllm/.github/workflows/deploy.yaml +++ b/samples/vllm/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services diff --git a/samples/vuejs/.github/workflows/deploy.yaml b/samples/vuejs/.github/workflows/deploy.yaml index b3d146782..e2b8cbae0 100644 --- a/samples/vuejs/.github/workflows/deploy.yaml +++ b/samples/vuejs/.github/workflows/deploy.yaml @@ -4,9 +4,23 @@ on: push: branches: - main + workflow_dispatch: + inputs: + action: + description: "Whether to deploy up or down" + required: true + default: "up" + type: choice + options: + - up + - down + stack: + description: "The stack to deploy up or down. (Leave blank for default)" + default: "" jobs: - deploy: + defang: + name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} environment: production runs-on: ubuntu-latest permissions: @@ -17,5 +31,13 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 - - name: Deploy - uses: DefangLabs/defang-github-action@v1.3.2 + - name: Defang ${{ github.event.inputs.action || 'up' }} ${{ github.event.inputs.stack || 'default stack' }} + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: ${{ github.event.inputs.action || 'up' }} + stack: ${{ github.event.inputs.stack || '' }} + + - name: Deployment Summary + uses: DefangLabs/defang-github-action@v1.4.0 + with: + command: services From 50d5abb53d00571075772ee27f32ea19600cee4f Mon Sep 17 00:00:00 2001 From: jordanstephens Date: Mon, 2 Feb 2026 14:47:57 -0800 Subject: [PATCH 20/22] restore SSL_MODE config in crewai sample --- samples/crewai/compose.yaml | 52 +++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/samples/crewai/compose.yaml b/samples/crewai/compose.yaml index 95af62bf2..56cfb8d7a 100644 --- a/samples/crewai/compose.yaml +++ b/samples/crewai/compose.yaml @@ -6,25 +6,25 @@ services: POSTGRES_PASSWORD: null x-defang-postgres: true ports: - - mode: host - target: 5432 - published: 5432 + - mode: host + target: 5432 + published: 5432 deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M redis: image: redis:6.2 x-defang-redis: true ports: - - mode: host - target: 6379 - published: 6379 + - mode: host + target: 6379 + published: 6379 deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M app: build: @@ -32,23 +32,24 @@ services: dockerfile: Dockerfile command: ./run.sh ports: - - 8000:8000 + - 8000:8000 depends_on: - - postgres - - redis + - postgres + - redis environment: DJANGO_SETTINGS_MODULE: config.settings - DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres?sslmode=require # remove sslmode for Playground + DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres?sslmode=${SSL_MODE} REDIS_URL: redis://redis:6379/0 CELERY_BROKER_URL: redis://redis:6379/0 CELERY_RESULT_BACKEND: redis://redis:6379/0 DJANGO_SECRET_KEY: null + SSL_MODE: null healthcheck: test: - - CMD - - curl - - -f - - http://localhost:8000/ + - CMD + - curl + - -f + - http://localhost:8000/ interval: 5s timeout: 2s retries: 10 @@ -56,7 +57,7 @@ services: deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M worker: build: @@ -64,20 +65,21 @@ services: dockerfile: Dockerfile command: celery -A config worker -l info depends_on: - - postgres - - redis - - chat - - embedding + - postgres + - redis + - chat + - embedding environment: DJANGO_SETTINGS_MODULE: config.settings - DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres?sslmode=require # remove sslmode for Playground + DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres?sslmode=${SSL_MODE} REDIS_URL: redis://redis:6379/0 OPENAI_API_KEY: defang DJANGO_SECRET_KEY: null + SSL_MODE: null deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M chat: provider: @@ -90,7 +92,7 @@ services: deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M embedding: provider: @@ -103,5 +105,5 @@ services: deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M From c19d2b6f5a43ffe356b647c97fcbb9d343cc243d Mon Sep 17 00:00:00 2001 From: jordanstephens Date: Mon, 2 Feb 2026 14:51:25 -0800 Subject: [PATCH 21/22] prettier format all compose files --- samples/agentic-autogen/compose.yaml | 14 ++-- samples/agentic-langgraph/compose.yaml | 20 ++--- samples/agentic-strands/compose.yaml | 28 +++---- samples/angular-express/compose.yaml | 16 ++-- samples/arduino-wifi/compose.yaml | 18 ++--- samples/bullmq-bullboard-redis/compose.yaml | 60 +++++++------- samples/csharp-dotnet/compose.yaml | 8 +- samples/django-celery/compose.yaml | 82 ++++++++++---------- samples/django-postgres/compose.yaml | 38 ++++----- samples/django-railpack/compose.yaml | 12 +-- samples/django-redis-postgres/compose.yaml | 58 +++++++------- samples/django/compose.yaml | 8 +- samples/elysia/compose.yaml | 8 +- samples/fastapi-postgres-pubsub/compose.yaml | 36 ++++----- samples/fastapi-postgres/compose.yaml | 24 +++--- samples/fastapi/compose.yaml | 8 +- samples/feathersjs/compose.yaml | 12 +-- samples/flask-railpack/compose.yaml | 18 ++--- samples/flask/compose.yaml | 18 ++--- samples/golang-http-form/compose.yaml | 12 +-- samples/golang-http/compose.yaml | 12 +-- samples/golang-mongodb/compose.yaml | 32 ++++---- samples/golang-openai/compose.yaml | 14 ++-- samples/golang-railpack/compose.yaml | 4 +- samples/golang-rest-api/compose.yaml | 12 +-- samples/golang-s3/compose.yaml | 16 ++-- samples/golang-slackbot/compose.yaml | 18 ++--- samples/google-adk/compose.yaml | 14 ++-- samples/hasura/compose.yaml | 38 ++++----- samples/html-css-js/compose.yaml | 14 ++-- samples/huginn/compose.yaml | 42 +++++----- samples/imgproxy/compose.yaml | 8 +- samples/javalin/compose.yaml | 16 ++-- samples/jupyter-postgres/compose.yaml | 30 +++---- samples/langchain/compose.yaml | 20 ++--- samples/managed-llm-provider/compose.yaml | 22 +++--- samples/managed-llm/compose.yaml | 40 +++++----- samples/mastra-nextjs/compose.yaml | 42 +++++----- samples/mcp/compose.yaml | 28 +++---- samples/metabase/compose.yaml | 28 +++---- samples/n8n/compose.yaml | 58 +++++++------- samples/nextjs-blog/compose.yaml | 6 +- samples/nextjs-claude/compose.yaml | 16 ++-- samples/nextjs-cv/compose.yaml | 18 ++--- samples/nextjs-documentation/compose.yaml | 6 +- samples/nextjs-postgres/compose.yaml | 26 +++---- samples/nextjs-railpack/compose.yaml | 8 +- samples/nextjs/compose.yaml | 8 +- samples/nocodb/compose.yaml | 8 +- samples/nodejs-chatroom/compose.yaml | 14 ++-- samples/nodejs-express/compose.yaml | 14 ++-- samples/nodejs-form/compose.yaml | 14 ++-- samples/nodejs-http/compose.yaml | 14 ++-- samples/nodejs-openai/compose.yaml | 16 ++-- samples/nodejs-react-postgres/compose.yaml | 20 ++--- samples/nodejs-rest-api/compose.yaml | 14 ++-- samples/nodejs-s3/compose.yaml | 18 ++--- samples/nounly/compose.yaml | 24 +++--- samples/ollama/compose.yaml | 36 ++++----- samples/phoenix-postgres/compose.yaml | 14 ++-- samples/platformatic/compose.yaml | 8 +- samples/python-form/compose.yaml | 12 +-- samples/python-implicit-gpu/compose.yaml | 18 ++--- samples/python-minimal/compose.yaml | 12 +-- samples/python-openai/compose.yaml | 14 ++-- samples/python-rest-api/compose.yaml | 12 +-- samples/python-s3/compose.yaml | 16 ++-- samples/rails/compose.yaml | 38 ++++----- samples/react-vite-railpack/compose.yaml | 6 +- samples/react/compose.yaml | 14 ++-- samples/redis-js/compose.yaml | 18 ++--- samples/rocket/compose.yaml | 16 ++-- samples/sailsjs-postgres/compose.yaml | 24 +++--- samples/sailsjs/compose.yaml | 16 ++-- samples/svelte-mysql/compose.yaml | 22 +++--- samples/sveltekit-mongodb/compose.yaml | 22 +++--- samples/sveltekit/compose.yaml | 8 +- samples/vllm/compose.yaml | 70 ++++++++--------- samples/vuejs/compose.yaml | 14 ++-- 79 files changed, 830 insertions(+), 830 deletions(-) diff --git a/samples/agentic-autogen/compose.yaml b/samples/agentic-autogen/compose.yaml index 1dc22e36e..4dc40a242 100644 --- a/samples/agentic-autogen/compose.yaml +++ b/samples/agentic-autogen/compose.yaml @@ -5,21 +5,21 @@ services: context: ./src dockerfile: Dockerfile ports: - - 3000:3000 + - 3000:3000 environment: - - MISTRAL_API_KEY=${MISTRAL_API_KEY} + - MISTRAL_API_KEY=${MISTRAL_API_KEY} restart: unless-stopped healthcheck: test: - - CMD - - curl - - -f - - http://localhost:3000/health + - CMD + - curl + - -f + - http://localhost:3000/health interval: 30s timeout: 10s retries: 3 deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/agentic-langgraph/compose.yaml b/samples/agentic-langgraph/compose.yaml index d11c64ac3..c4dd39e2e 100644 --- a/samples/agentic-langgraph/compose.yaml +++ b/samples/agentic-langgraph/compose.yaml @@ -5,30 +5,30 @@ services: context: ./app dockerfile: Dockerfile ports: - - target: 3000 - published: 3000 - mode: ingress + - target: 3000 + published: 3000 + mode: ingress environment: TAVILY_API_KEY: null LLM_URL: http://llm/api/v1/ LLM_MODEL: default OPENAI_API_KEY: FAKE_TOKEN depends_on: - - llm + - llm deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M llm: environment: - - OPENAI_API_KEY=FAKE_TOKEN + - OPENAI_API_KEY=FAKE_TOKEN image: defangio/openai-access-gateway:latest ports: - - target: 80 - published: 80 - protocol: tcp - mode: host + - target: 80 + published: 80 + protocol: tcp + mode: host x-defang-llm: true deploy: resources: diff --git a/samples/agentic-strands/compose.yaml b/samples/agentic-strands/compose.yaml index f9b145efc..3b1eb67b5 100644 --- a/samples/agentic-strands/compose.yaml +++ b/samples/agentic-strands/compose.yaml @@ -4,40 +4,40 @@ services: build: context: ./app ports: - - target: 5001 - published: 5001 - mode: ingress + - target: 5001 + published: 5001 + mode: ingress environment: LLM_URL: http://llm/api/v1/ LLM_MODEL: default OPENAI_API_KEY: SAMPLE_TOKEN healthcheck: test: - - CMD - - python3 - - -c - - import urllib.request; exit(0) if urllib.request.urlopen('http://localhost:5001/health').status - == 200 else exit(1) + - CMD + - python3 + - -c + - import urllib.request; exit(0) if urllib.request.urlopen('http://localhost:5001/health').status + == 200 else exit(1) interval: 30s timeout: 5s retries: 3 start_period: 10s depends_on: - - llm + - llm deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M llm: environment: OPENAI_API_KEY: SAMPLE_TOKEN image: defangio/openai-access-gateway ports: - - target: 80 - published: 80 - protocol: tcp - mode: host + - target: 80 + published: 80 + protocol: tcp + mode: host x-defang-llm: true deploy: resources: diff --git a/samples/angular-express/compose.yaml b/samples/angular-express/compose.yaml index dfc598278..17df9a288 100644 --- a/samples/angular-express/compose.yaml +++ b/samples/angular-express/compose.yaml @@ -4,25 +4,25 @@ services: build: context: ./frontend ports: - - target: 80 - published: 80 - mode: ingress + - target: 80 + published: 80 + mode: ingress restart: unless-stopped deploy: resources: reservations: memory: 64M depends_on: - - backend + - backend backend: build: context: ./backend ports: - - target: 3000 - published: 3000 - mode: ingress + - target: 3000 + published: 3000 + mode: ingress environment: - - PORT=3000 + - PORT=3000 restart: unless-stopped deploy: resources: diff --git a/samples/arduino-wifi/compose.yaml b/samples/arduino-wifi/compose.yaml index 4f363fe7f..b43119149 100644 --- a/samples/arduino-wifi/compose.yaml +++ b/samples/arduino-wifi/compose.yaml @@ -8,16 +8,16 @@ services: deploy: resources: reservations: - cpus: '1.0' + cpus: "1.0" memory: 512M ports: - - mode: ingress - target: 8081 - published: 8081 + - mode: ingress + target: 8081 + published: 8081 healthcheck: test: - - CMD - - python3 - - -c - - import sys, urllib.request; urllib.request.urlopen(sys.argv[1]).read() - - http://localhost:8081/ + - CMD + - python3 + - -c + - import sys, urllib.request; urllib.request.urlopen(sys.argv[1]).read() + - http://localhost:8081/ diff --git a/samples/bullmq-bullboard-redis/compose.yaml b/samples/bullmq-bullboard-redis/compose.yaml index b79690950..ee5f6ccf2 100644 --- a/samples/bullmq-bullboard-redis/compose.yaml +++ b/samples/bullmq-bullboard-redis/compose.yaml @@ -6,25 +6,25 @@ services: context: ./board dockerfile: Dockerfile ports: - - mode: ingress - target: 3000 - published: 3000 + - mode: ingress + target: 3000 + published: 3000 environment: - - REDIS=redis://redisx:6379 - - BOARD_PASSWORD - - QUEUE + - REDIS=redis://redisx:6379 + - BOARD_PASSWORD + - QUEUE healthcheck: test: - - CMD - - curl - - -f - - 127.0.0.1:3000 + - CMD + - curl + - -f + - 127.0.0.1:3000 depends_on: - - redisx + - redisx deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M api: restart: unless-stopped @@ -32,24 +32,24 @@ services: context: ./api dockerfile: Dockerfile ports: - - mode: ingress - target: 3001 - published: 3001 + - mode: ingress + target: 3001 + published: 3001 environment: - - REDIS=redis://redisx:6379 - - QUEUE + - REDIS=redis://redisx:6379 + - QUEUE healthcheck: test: - - CMD - - curl - - -f - - 127.0.0.1:3001 + - CMD + - curl + - -f + - 127.0.0.1:3001 depends_on: - - redisx + - redisx deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M worker: restart: unless-stopped @@ -57,25 +57,25 @@ services: replicas: 1 resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M build: context: ./worker dockerfile: Dockerfile environment: - - REDIS=redis://redisx:6379 - - QUEUE + - REDIS=redis://redisx:6379 + - QUEUE depends_on: - - redisx + - redisx redisx: image: redis:6.2 x-defang-redis: true restart: unless-stopped ports: - - mode: host - target: 6379 + - mode: host + target: 6379 deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/csharp-dotnet/compose.yaml b/samples/csharp-dotnet/compose.yaml index 2cebac4a3..4a4953965 100644 --- a/samples/csharp-dotnet/compose.yaml +++ b/samples/csharp-dotnet/compose.yaml @@ -6,11 +6,11 @@ services: context: ./app dockerfile: Dockerfile ports: - - target: 80 - published: 8080 - mode: ingress + - target: 80 + published: 8080 + mode: ingress deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/django-celery/compose.yaml b/samples/django-celery/compose.yaml index 016f6651f..0d1450652 100644 --- a/samples/django-celery/compose.yaml +++ b/samples/django-celery/compose.yaml @@ -6,23 +6,23 @@ services: context: ./app dockerfile: Dockerfile environment: - - SECRET_KEY - - REDIS_URL=redis://broker:6379/0 - - POSTGRES_URL=postgres://postgres:${POSTGRES_PASSWORD}@database:5432/postgres + - SECRET_KEY + - REDIS_URL=redis://broker:6379/0 + - POSTGRES_URL=postgres://postgres:${POSTGRES_PASSWORD}@database:5432/postgres depends_on: - - database - - migrate - - broker + - database + - migrate + - broker ports: - - mode: ingress - target: 8000 - published: 8000 + - mode: ingress + target: 8000 + published: 8000 healthcheck: test: - - CMD - - curl - - -f - - http://localhost:8000/health/ + - CMD + - curl + - -f + - http://localhost:8000/health/ interval: 30s timeout: 10s retries: 3 @@ -30,24 +30,24 @@ services: deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M migrate: - restart: 'no' + restart: "no" build: context: ./app dockerfile: Dockerfile environment: - - SECRET_KEY - - REDIS_URL=redis://broker:6379/0 - - POSTGRES_URL=postgres://postgres:${POSTGRES_PASSWORD}@database:5432/postgres + - SECRET_KEY + - REDIS_URL=redis://broker:6379/0 + - POSTGRES_URL=postgres://postgres:${POSTGRES_PASSWORD}@database:5432/postgres depends_on: - - database + - database command: python manage.py migrate deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M worker: restart: unless-stopped @@ -55,57 +55,57 @@ services: context: ./app dockerfile: Dockerfile environment: - - SECRET_KEY - - REDIS_URL=redis://broker:6379/0 - - POSTGRES_URL=postgres://postgres:${POSTGRES_PASSWORD}@database:5432/postgres + - SECRET_KEY + - REDIS_URL=redis://broker:6379/0 + - POSTGRES_URL=postgres://postgres:${POSTGRES_PASSWORD}@database:5432/postgres depends_on: - - database - - broker - - migrate + - database + - broker + - migrate command: celery -A django_celery worker --loglevel=info deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M database: image: postgres:16 x-defang-postgres: true ports: - - mode: host - target: 5432 - published: 5432 + - mode: host + target: 5432 + published: 5432 environment: - - POSTGRES_PASSWORD + - POSTGRES_PASSWORD healthcheck: test: - - CMD-SHELL - - pg_isready -U postgres + - CMD-SHELL + - pg_isready -U postgres interval: 10s timeout: 5s retries: 5 deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M broker: image: redis:7.1 x-defang-redis: true ports: - - mode: host - target: 6379 - published: 6379 + - mode: host + target: 6379 + published: 6379 healthcheck: test: - - CMD - - redis-cli - - ping + - CMD + - redis-cli + - ping interval: 10s timeout: 5s retries: 5 deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/django-postgres/compose.yaml b/samples/django-postgres/compose.yaml index 77ce6eab7..92dcde900 100644 --- a/samples/django-postgres/compose.yaml +++ b/samples/django-postgres/compose.yaml @@ -5,37 +5,37 @@ services: image: postgres:16 x-defang-postgres: true environment: - - POSTGRES_DB=django - - POSTGRES_USER=django - - POSTGRES_PASSWORD + - POSTGRES_DB=django + - POSTGRES_USER=django + - POSTGRES_PASSWORD ports: - - mode: host - target: 5432 - published: 5432 + - mode: host + target: 5432 + published: 5432 deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M django: restart: unless-stopped build: ./app ports: - - mode: ingress - target: 8000 - published: 8000 + - mode: ingress + target: 8000 + published: 8000 environment: - - DB_HOST=db - - DEBUG=False - - POSTGRES_USER=django - - POSTGRES_DB=django - - POSTGRES_PASSWORD - - SECRET_KEY - - ALLOWED_HOSTS + - DB_HOST=db + - DEBUG=False + - POSTGRES_USER=django + - POSTGRES_DB=django + - POSTGRES_PASSWORD + - SECRET_KEY + - ALLOWED_HOSTS depends_on: - - db + - db deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/django-railpack/compose.yaml b/samples/django-railpack/compose.yaml index 5130c432d..50cc5d80a 100644 --- a/samples/django-railpack/compose.yaml +++ b/samples/django-railpack/compose.yaml @@ -5,15 +5,15 @@ services: build: context: ./app ports: - - mode: ingress - target: 8000 + - mode: ingress + target: 8000 environment: - - DEBUG=False + - DEBUG=False command: - - python manage.py migrate && python manage.py createsuperauto && gunicorn defang_sample.wsgi:application - --bind 0.0.0.0:8000 + - python manage.py migrate && python manage.py createsuperauto && gunicorn defang_sample.wsgi:application + --bind 0.0.0.0:8000 deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/django-redis-postgres/compose.yaml b/samples/django-redis-postgres/compose.yaml index cda82f6d4..ab05a6c5f 100644 --- a/samples/django-redis-postgres/compose.yaml +++ b/samples/django-redis-postgres/compose.yaml @@ -5,67 +5,67 @@ services: context: ./app dockerfile: Dockerfile ports: - - target: 8000 - published: 8000 - mode: ingress + - target: 8000 + published: 8000 + mode: ingress environment: - - REDIS_URL=redis://redis-service:6379 - - POSTGRES_URL=postgres://djangouser:${POSTGRES_PASSWORD}@postgres-service:5432/djangodatabase? - - SECRET_KEY + - REDIS_URL=redis://redis-service:6379 + - POSTGRES_URL=postgres://djangouser:${POSTGRES_PASSWORD}@postgres-service:5432/djangodatabase? + - SECRET_KEY healthcheck: test: - - CMD - - python3 - - -c - - import sys, urllib.request; urllib.request.urlopen(sys.argv[1]).read() - - http://localhost:8000/ + - CMD + - python3 + - -c + - import sys, urllib.request; urllib.request.urlopen(sys.argv[1]).read() + - http://localhost:8000/ interval: 10s depends_on: - - redis-service - - postgres-service - - migrate + - redis-service + - postgres-service + - migrate deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M redis-service: image: redis:6.2 ports: - - mode: host - target: 6379 + - mode: host + target: 6379 deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M migrate: - restart: 'no' + restart: "no" build: context: ./app dockerfile: Dockerfile command: python manage.py migrate depends_on: - - postgres-service + - postgres-service environment: - - POSTGRES_URL=postgres://djangouser:${POSTGRES_PASSWORD}@postgres-service:5432/djangodatabase? - - SECRET_KEY + - POSTGRES_URL=postgres://djangouser:${POSTGRES_PASSWORD}@postgres-service:5432/djangodatabase? + - SECRET_KEY deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M postgres-service: image: postgres:16.4 ports: - - mode: host - target: 5432 + - mode: host + target: 5432 environment: - - POSTGRES_PASSWORD - - POSTGRES_DB=djangodatabase - - POSTGRES_USER=djangouser + - POSTGRES_PASSWORD + - POSTGRES_DB=djangodatabase + - POSTGRES_USER=djangouser deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/django/compose.yaml b/samples/django/compose.yaml index 6712e2795..9b4bb227f 100644 --- a/samples/django/compose.yaml +++ b/samples/django/compose.yaml @@ -6,12 +6,12 @@ services: context: ./app dockerfile: Dockerfile ports: - - mode: ingress - target: 8000 + - mode: ingress + target: 8000 environment: - - DEBUG=False + - DEBUG=False deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/elysia/compose.yaml b/samples/elysia/compose.yaml index 0c2251a81..cff51c3be 100644 --- a/samples/elysia/compose.yaml +++ b/samples/elysia/compose.yaml @@ -7,11 +7,11 @@ services: dockerfile: Dockerfile target: production ports: - - target: 3000 - mode: ingress - published: 3000 + - target: 3000 + mode: ingress + published: 3000 deploy: resources: reservations: - cpus: '0.50' + cpus: "0.50" memory: 512M diff --git a/samples/fastapi-postgres-pubsub/compose.yaml b/samples/fastapi-postgres-pubsub/compose.yaml index 38c4f0e49..4b4a88548 100644 --- a/samples/fastapi-postgres-pubsub/compose.yaml +++ b/samples/fastapi-postgres-pubsub/compose.yaml @@ -11,13 +11,13 @@ services: DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres?sslmode=${SSL_MODE} SSL_MODE: null ports: - - 8000:8000 + - 8000:8000 healthcheck: test: - - CMD - - curl - - -f - - http://localhost:8000/healthz + - CMD + - curl + - -f + - http://localhost:8000/healthz interval: 30s timeout: 5s retries: 3 @@ -25,7 +25,7 @@ services: deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M app_b: build: @@ -37,13 +37,13 @@ services: environment: DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres?sslmode=${SSL_MODE} ports: - - 8001:8000 + - 8001:8000 healthcheck: test: - - CMD - - curl - - -f - - http://localhost:8000/healthz + - CMD + - curl + - -f + - http://localhost:8000/healthz interval: 30s timeout: 5s retries: 3 @@ -51,7 +51,7 @@ services: deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M postgres: image: postgres:16 @@ -59,14 +59,14 @@ services: environment: POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} ports: - - mode: host - target: 5432 - published: 5432 + - mode: host + target: 5432 + published: 5432 x-defang-postgres: true healthcheck: test: - - CMD-SHELL - - pg_isready -U postgres -d postgres + - CMD-SHELL + - pg_isready -U postgres -d postgres interval: 10s timeout: 5s retries: 5 @@ -74,5 +74,5 @@ services: deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/fastapi-postgres/compose.yaml b/samples/fastapi-postgres/compose.yaml index ab670dd1b..7f09364ca 100644 --- a/samples/fastapi-postgres/compose.yaml +++ b/samples/fastapi-postgres/compose.yaml @@ -6,30 +6,30 @@ services: context: ./fastapi dockerfile: Dockerfile ports: - - mode: ingress - target: 8000 - published: 8000 + - mode: ingress + target: 8000 + published: 8000 environment: - - DB_URL=postgres://postgres:${POSTGRES_PASSWORD}@db:5432/postgres + - DB_URL=postgres://postgres:${POSTGRES_PASSWORD}@db:5432/postgres depends_on: - - db + - db deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M db: image: postgres:15 restart: unless-stopped environment: - - POSTGRES_USER=postgres - - POSTGRES_PASSWORD - - POSTGRES_DB=postgres + - POSTGRES_USER=postgres + - POSTGRES_PASSWORD + - POSTGRES_DB=postgres ports: - - mode: host - target: 5432 + - mode: host + target: 5432 deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/fastapi/compose.yaml b/samples/fastapi/compose.yaml index 628c20460..a7868307f 100644 --- a/samples/fastapi/compose.yaml +++ b/samples/fastapi/compose.yaml @@ -6,11 +6,11 @@ services: context: ./fastapi dockerfile: Dockerfile ports: - - mode: ingress - target: 8000 - published: 8000 + - mode: ingress + target: 8000 + published: 8000 deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/feathersjs/compose.yaml b/samples/feathersjs/compose.yaml index c1363424e..1befd2361 100644 --- a/samples/feathersjs/compose.yaml +++ b/samples/feathersjs/compose.yaml @@ -5,14 +5,14 @@ services: context: ./src dockerfile: Dockerfile ports: - - target: 3030 - published: 3030 - protocol: tcp - mode: ingress + - target: 3030 + published: 3030 + protocol: tcp + mode: ingress environment: - - NODE_ENV=production + - NODE_ENV=production deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/flask-railpack/compose.yaml b/samples/flask-railpack/compose.yaml index 6e9fd956a..afdbdc8d1 100644 --- a/samples/flask-railpack/compose.yaml +++ b/samples/flask-railpack/compose.yaml @@ -7,16 +7,16 @@ services: deploy: resources: reservations: - cpus: '1.0' + cpus: "1.0" memory: 512M ports: - - mode: ingress - target: 5000 - published: 5000 + - mode: ingress + target: 5000 + published: 5000 healthcheck: test: - - CMD - - python3 - - -c - - import sys, urllib.request; urllib.request.urlopen(sys.argv[1]).read() - - http://localhost:5000/ + - CMD + - python3 + - -c + - import sys, urllib.request; urllib.request.urlopen(sys.argv[1]).read() + - http://localhost:5000/ diff --git a/samples/flask/compose.yaml b/samples/flask/compose.yaml index adde5097a..08f74f86e 100644 --- a/samples/flask/compose.yaml +++ b/samples/flask/compose.yaml @@ -8,16 +8,16 @@ services: deploy: resources: reservations: - cpus: '1.0' + cpus: "1.0" memory: 512M ports: - - mode: ingress - target: 5000 - published: 5000 + - mode: ingress + target: 5000 + published: 5000 healthcheck: test: - - CMD - - python3 - - -c - - import sys, urllib.request; urllib.request.urlopen(sys.argv[1]).read() - - http://localhost:5000/ + - CMD + - python3 + - -c + - import sys, urllib.request; urllib.request.urlopen(sys.argv[1]).read() + - http://localhost:5000/ diff --git a/samples/golang-http-form/compose.yaml b/samples/golang-http-form/compose.yaml index 84e33c54e..a7fabd14c 100644 --- a/samples/golang-http-form/compose.yaml +++ b/samples/golang-http-form/compose.yaml @@ -6,15 +6,15 @@ services: context: ./app dockerfile: Dockerfile ports: - - mode: ingress - target: 8080 + - mode: ingress + target: 8080 deploy: resources: reservations: memory: 50M healthcheck: test: - - CMD - - curl - - -f - - http://localhost:8080/ + - CMD + - curl + - -f + - http://localhost:8080/ diff --git a/samples/golang-http/compose.yaml b/samples/golang-http/compose.yaml index 30d58a03f..1d6702bbf 100644 --- a/samples/golang-http/compose.yaml +++ b/samples/golang-http/compose.yaml @@ -6,15 +6,15 @@ services: context: ./app dockerfile: Dockerfile ports: - - mode: ingress - target: 8080 + - mode: ingress + target: 8080 deploy: resources: reservations: memory: 50M healthcheck: test: - - CMD - - curl - - -f - - http://localhost:8080/ + - CMD + - curl + - -f + - http://localhost:8080/ diff --git a/samples/golang-mongodb/compose.yaml b/samples/golang-mongodb/compose.yaml index a122170a7..46f4a47d1 100644 --- a/samples/golang-mongodb/compose.yaml +++ b/samples/golang-mongodb/compose.yaml @@ -6,40 +6,40 @@ services: context: ./app dockerfile: Dockerfile ports: - - mode: ingress - target: 8080 - published: 8080 + - mode: ingress + target: 8080 + published: 8080 environment: - - MONGO_URI=mongodb://$MONGO_INITDB_ROOT_USERNAME:$MONGO_INITDB_ROOT_PASSWORD@db:27017/taskmanager + - MONGO_URI=mongodb://$MONGO_INITDB_ROOT_USERNAME:$MONGO_INITDB_ROOT_PASSWORD@db:27017/taskmanager healthcheck: test: - - CMD - - curl - - -f - - http://localhost:8080/ + - CMD + - curl + - -f + - http://localhost:8080/ depends_on: - - db + - db deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M db: image: mongo:5 restart: unless-stopped ports: - - mode: host - target: 27017 + - mode: host + target: 27017 environment: - - MONGO_INITDB_ROOT_USERNAME - - MONGO_INITDB_ROOT_PASSWORD + - MONGO_INITDB_ROOT_USERNAME + - MONGO_INITDB_ROOT_PASSWORD volumes: - - db_data:/data/db + - db_data:/data/db x-defang-mongodb: true deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M volumes: db_data: diff --git a/samples/golang-openai/compose.yaml b/samples/golang-openai/compose.yaml index b60f94a9f..62351f19e 100644 --- a/samples/golang-openai/compose.yaml +++ b/samples/golang-openai/compose.yaml @@ -6,17 +6,17 @@ services: context: ./app dockerfile: Dockerfile ports: - - mode: ingress - target: 8080 + - mode: ingress + target: 8080 environment: - - OPENAI_KEY + - OPENAI_KEY deploy: resources: reservations: memory: 50M healthcheck: test: - - CMD - - curl - - -f - - http://localhost:8080/ + - CMD + - curl + - -f + - http://localhost:8080/ diff --git a/samples/golang-railpack/compose.yaml b/samples/golang-railpack/compose.yaml index 6c6fc6f7a..88eea7742 100644 --- a/samples/golang-railpack/compose.yaml +++ b/samples/golang-railpack/compose.yaml @@ -5,8 +5,8 @@ services: build: context: ./app ports: - - mode: ingress - target: 8080 + - mode: ingress + target: 8080 deploy: resources: reservations: diff --git a/samples/golang-rest-api/compose.yaml b/samples/golang-rest-api/compose.yaml index 1e8cec7a1..3e5345b84 100644 --- a/samples/golang-rest-api/compose.yaml +++ b/samples/golang-rest-api/compose.yaml @@ -6,15 +6,15 @@ services: context: ./app dockerfile: Dockerfile ports: - - mode: ingress - target: 8080 + - mode: ingress + target: 8080 deploy: resources: reservations: memory: 50M healthcheck: test: - - CMD - - curl - - -f - - http://localhost:8080/ + - CMD + - curl + - -f + - http://localhost:8080/ diff --git a/samples/golang-s3/compose.yaml b/samples/golang-s3/compose.yaml index bb1803d7f..8ecd7e714 100644 --- a/samples/golang-s3/compose.yaml +++ b/samples/golang-s3/compose.yaml @@ -6,18 +6,18 @@ services: context: ./app dockerfile: Dockerfile ports: - - mode: ingress - target: 8080 + - mode: ingress + target: 8080 environment: - - AWS_ACCESS_KEY - - AWS_SECRET_KEY + - AWS_ACCESS_KEY + - AWS_SECRET_KEY deploy: resources: reservations: memory: 50M healthcheck: test: - - CMD - - curl - - -f - - http://localhost:8080/ + - CMD + - curl + - -f + - http://localhost:8080/ diff --git a/samples/golang-slackbot/compose.yaml b/samples/golang-slackbot/compose.yaml index d3c1e1468..df58ce5e0 100644 --- a/samples/golang-slackbot/compose.yaml +++ b/samples/golang-slackbot/compose.yaml @@ -6,19 +6,19 @@ services: context: ./app dockerfile: Dockerfile ports: - - mode: ingress - target: 8080 + - mode: ingress + target: 8080 environment: - - SLACK_TOKEN - - SLACK_CHANNEL_ID + - SLACK_TOKEN + - SLACK_CHANNEL_ID healthcheck: test: - - CMD - - curl - - -f - - http://localhost:8080/ + - CMD + - curl + - -f + - http://localhost:8080/ deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/google-adk/compose.yaml b/samples/google-adk/compose.yaml index bc3ebaa16..ba43e0f25 100644 --- a/samples/google-adk/compose.yaml +++ b/samples/google-adk/compose.yaml @@ -3,19 +3,19 @@ services: agent: build: . ports: - - 8080:8080 + - 8080:8080 healthcheck: test: - - CMD - - python3 - - -c - - import urllib.request; exit(0) if urllib.request.urlopen('http://localhost:8080/').status==200 - else exit(1) + - CMD + - python3 + - -c + - import urllib.request; exit(0) if urllib.request.urlopen('http://localhost:8080/').status==200 + else exit(1) interval: 30s timeout: 10s retries: 5 deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/hasura/compose.yaml b/samples/hasura/compose.yaml index b5e5956f1..46b5e707a 100644 --- a/samples/hasura/compose.yaml +++ b/samples/hasura/compose.yaml @@ -6,36 +6,36 @@ services: dockerfile: Dockerfile context: ./hasura ports: - - target: 8080 - published: 8080 - mode: ingress + - target: 8080 + published: 8080 + mode: ingress environment: - - HASURA_GRAPHQL_ADMIN_SECRET - - HASURA_GRAPHQL_DATABASE_URL=postgres://postgres:${POSTGRES_PASSWORD}@database:5432/postgres - - HASURA_GRAPHQL_ENABLE_CONSOLE=true - - HASURA_GRAPHQL_UNAUTHORIZED_ROLE=public - - HASURA_GRAPHQL_EXPERIMENTAL_FEATURES=naming_convention - - HASURA_GRAPHQL_DEFAULT_NAMING_CONVENTION=graphql-default - - HASURA_GRAPHQL_MIGRATIONS_DIR=/hasura/migrations - - HASURA_GRAPHQL_METADATA_DIR=/hasura/metadata - - POSTGRES_PASSWORD + - HASURA_GRAPHQL_ADMIN_SECRET + - HASURA_GRAPHQL_DATABASE_URL=postgres://postgres:${POSTGRES_PASSWORD}@database:5432/postgres + - HASURA_GRAPHQL_ENABLE_CONSOLE=true + - HASURA_GRAPHQL_UNAUTHORIZED_ROLE=public + - HASURA_GRAPHQL_EXPERIMENTAL_FEATURES=naming_convention + - HASURA_GRAPHQL_DEFAULT_NAMING_CONVENTION=graphql-default + - HASURA_GRAPHQL_MIGRATIONS_DIR=/hasura/migrations + - HASURA_GRAPHQL_METADATA_DIR=/hasura/metadata + - POSTGRES_PASSWORD deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M database: image: postgres:16 x-defang-postgres: true ports: - - target: 5432 - mode: host + - target: 5432 + mode: host environment: - - POSTGRES_USER=postgres - - POSTGRES_DB=postgres - - POSTGRES_PASSWORD + - POSTGRES_USER=postgres + - POSTGRES_DB=postgres + - POSTGRES_PASSWORD deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/html-css-js/compose.yaml b/samples/html-css-js/compose.yaml index 5e28564c4..4fd7999cd 100644 --- a/samples/html-css-js/compose.yaml +++ b/samples/html-css-js/compose.yaml @@ -6,16 +6,16 @@ services: context: ./app dockerfile: Dockerfile ports: - - target: 8080 - published: 8080 - mode: ingress + - target: 8080 + published: 8080 + mode: ingress deploy: resources: reservations: memory: 256M healthcheck: test: - - CMD - - curl - - -f - - http://localhost:8080/ + - CMD + - curl + - -f + - http://localhost:8080/ diff --git a/samples/huginn/compose.yaml b/samples/huginn/compose.yaml index 70b10366d..1263e08cd 100644 --- a/samples/huginn/compose.yaml +++ b/samples/huginn/compose.yaml @@ -4,43 +4,43 @@ services: image: ghcr.io/huginn/huginn restart: unless-stopped ports: - - target: 3000 - published: 3000 - mode: ingress + - target: 3000 + published: 3000 + mode: ingress deploy: resources: reservations: - cpus: '1.0' + cpus: "1.0" memory: 1G healthcheck: test: - - CMD - - curl - - -f - - http://localhost:3000/ + - CMD + - curl + - -f + - http://localhost:3000/ interval: 1m30s timeout: 30s retries: 10 environment: - - DATABASE_ADAPTER=postgresql - - DATABASE_NAME=huginn - - DATABASE_USERNAME=huginn - - DATABASE_HOST=db - - DATABASE_PASSWORD="${POSTGRES_PASSWORD}" + - DATABASE_ADAPTER=postgresql + - DATABASE_NAME=huginn + - DATABASE_USERNAME=huginn + - DATABASE_HOST=db + - DATABASE_PASSWORD="${POSTGRES_PASSWORD}" depends_on: - - db + - db db: image: postgres:16 environment: - - POSTGRES_USER=huginn - - POSTGRES_DB=huginn - - POSTGRES_PASSWORD + - POSTGRES_USER=huginn + - POSTGRES_DB=huginn + - POSTGRES_PASSWORD ports: - - mode: host - target: 5432 - published: 5432 + - mode: host + target: 5432 + published: 5432 deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/imgproxy/compose.yaml b/samples/imgproxy/compose.yaml index 9c89556c2..dcc9f18f0 100644 --- a/samples/imgproxy/compose.yaml +++ b/samples/imgproxy/compose.yaml @@ -4,10 +4,10 @@ services: restart: unless-stopped image: darthsim/imgproxy ports: - - mode: ingress - target: 8080 - published: 8080 - protocol: tcp + - mode: ingress + target: 8080 + published: 8080 + protocol: tcp deploy: resources: reservations: diff --git a/samples/javalin/compose.yaml b/samples/javalin/compose.yaml index e02d2ca0f..5c802c0ca 100644 --- a/samples/javalin/compose.yaml +++ b/samples/javalin/compose.yaml @@ -4,17 +4,17 @@ services: build: context: ./app ports: - - target: 7000 - published: 7000 - mode: ingress + - target: 7000 + published: 7000 + mode: ingress healthcheck: test: - - CMD - - curl - - -f - - http://localhost:7000/ + - CMD + - curl + - -f + - http://localhost:7000/ deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/jupyter-postgres/compose.yaml b/samples/jupyter-postgres/compose.yaml index d9df7a685..488a2dd27 100644 --- a/samples/jupyter-postgres/compose.yaml +++ b/samples/jupyter-postgres/compose.yaml @@ -4,13 +4,13 @@ services: build: context: ./jupyter ports: - - mode: ingress - target: 8888 - published: 8888 + - mode: ingress + target: 8888 + published: 8888 deploy: resources: limits: - cpus: '1.0' + cpus: "1.0" memory: 1G environment: JUPYTER_TOKEN: null @@ -18,27 +18,27 @@ services: DATABASE_HOST: db healthcheck: test: - - CMD - - curl - - -f - - http://localhost:8888/login + - CMD + - curl + - -f + - http://localhost:8888/login depends_on: - - db + - db db: image: postgres:14 x-defang-postgres: true ports: - - mode: host - target: 5432 - published: 5432 + - mode: host + target: 5432 + published: 5432 healthcheck: test: - - CMD-SHELL - - pg_isready -U postgres + - CMD-SHELL + - pg_isready -U postgres environment: POSTGRES_PASSWORD: null deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/langchain/compose.yaml b/samples/langchain/compose.yaml index ce7a3de73..80ab3eee9 100644 --- a/samples/langchain/compose.yaml +++ b/samples/langchain/compose.yaml @@ -5,20 +5,20 @@ services: context: ./app dockerfile: Dockerfile environment: - - OPENAI_KEY + - OPENAI_KEY ports: - - target: 80 - published: 8080 - protocol: tcp - mode: ingress + - target: 80 + published: 8080 + protocol: tcp + mode: ingress healthcheck: test: - - CMD - - curl - - -f - - http://localhost:8080/ + - CMD + - curl + - -f + - http://localhost:8080/ deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/managed-llm-provider/compose.yaml b/samples/managed-llm-provider/compose.yaml index 6612bf8ed..a5ea5e836 100644 --- a/samples/managed-llm-provider/compose.yaml +++ b/samples/managed-llm-provider/compose.yaml @@ -5,25 +5,25 @@ services: context: ./app dockerfile: Dockerfile ports: - - 8000:8000 + - 8000:8000 restart: always environment: - - LLM_URL=http://llm/api/v1/ - - LLM_MODEL=default - - OPENAI_API_KEY=FAKE_TOKEN + - LLM_URL=http://llm/api/v1/ + - LLM_MODEL=default + - OPENAI_API_KEY=FAKE_TOKEN healthcheck: test: - - CMD - - python3 - - -c - - import sys, urllib.request; urllib.request.urlopen(sys.argv[1]).read() - - http://localhost:8000/health + - CMD + - python3 + - -c + - import sys, urllib.request; urllib.request.urlopen(sys.argv[1]).read() + - http://localhost:8000/health interval: 30s timeout: 5s retries: 3 start_period: 5s depends_on: - - llm + - llm deploy: resources: reservations: @@ -36,7 +36,7 @@ services: model: ai/smollm2 x-defang-llm: true environment: - - OPENAI_API_KEY=FAKE_TOKEN + - OPENAI_API_KEY=FAKE_TOKEN deploy: resources: reservations: diff --git a/samples/managed-llm/compose.yaml b/samples/managed-llm/compose.yaml index f2285add2..c89e85976 100644 --- a/samples/managed-llm/compose.yaml +++ b/samples/managed-llm/compose.yaml @@ -5,49 +5,49 @@ services: context: ./app dockerfile: Dockerfile ports: - - 8000:8000 + - 8000:8000 restart: always environment: - - LLM_URL=http://llm/api/v1/ - - LLM_MODEL=default - - OPENAI_API_KEY=FAKE_TOKEN + - LLM_URL=http://llm/api/v1/ + - LLM_MODEL=default + - OPENAI_API_KEY=FAKE_TOKEN healthcheck: test: - - CMD - - python3 - - -c - - import sys, urllib.request; urllib.request.urlopen(sys.argv[1]).read() - - http://localhost:8000/ + - CMD + - python3 + - -c + - import sys, urllib.request; urllib.request.urlopen(sys.argv[1]).read() + - http://localhost:8000/ interval: 30s timeout: 5s retries: 3 start_period: 5s depends_on: - - llm + - llm networks: - - default - - private + - default + - private deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M llm: x-defang-llm: true image: docker.io/defangio/openai-access-gateway:latest ports: - - target: 80 - published: 80 - protocol: tcp - mode: host + - target: 80 + published: 80 + protocol: tcp + mode: host networks: - - private + - private environment: - - OPENAI_API_KEY=FAKE_TOKEN + - OPENAI_API_KEY=FAKE_TOKEN deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M networks: default: null diff --git a/samples/mastra-nextjs/compose.yaml b/samples/mastra-nextjs/compose.yaml index d057b190b..b63f1d110 100644 --- a/samples/mastra-nextjs/compose.yaml +++ b/samples/mastra-nextjs/compose.yaml @@ -6,48 +6,48 @@ services: context: ./app dockerfile: Dockerfile environment: - - DB_URL=postgres://postgres:${POSTGRES_PASSWORD}@database:5432/postgres - - DB_SSL - - LLM_MODEL - - GITHUB_TOKEN + - DB_URL=postgres://postgres:${POSTGRES_PASSWORD}@database:5432/postgres + - DB_SSL + - LLM_MODEL + - GITHUB_TOKEN restart: unless-stopped ports: - - mode: ingress - target: 3000 - published: 3000 + - mode: ingress + target: 3000 + published: 3000 healthcheck: test: - - CMD - - curl - - -f - - http://localhost:3000 + - CMD + - curl + - -f + - http://localhost:3000 depends_on: - - database + - database deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M database: image: postgres:16 x-defang-postgres: true restart: always environment: - - POSTGRES_PASSWORD - - POSTGRES_DB=postgres - - POSTGRES_USER=postgres + - POSTGRES_PASSWORD + - POSTGRES_DB=postgres + - POSTGRES_USER=postgres ports: - - mode: host - target: 5432 + - mode: host + target: 5432 healthcheck: test: - - CMD-SHELL - - pg_isready -h localhost -U postgres -d postgres + - CMD-SHELL + - pg_isready -h localhost -U postgres -d postgres interval: 5s timeout: 5s retries: 10 deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/mcp/compose.yaml b/samples/mcp/compose.yaml index 3893995d7..6e60a5e6c 100644 --- a/samples/mcp/compose.yaml +++ b/samples/mcp/compose.yaml @@ -5,35 +5,35 @@ services: context: ./service-1 dockerfile: Dockerfile ports: - - target: 3000 - published: 3000 - mode: ingress + - target: 3000 + published: 3000 + mode: ingress deploy: resources: reservations: memory: 256M environment: - - MCP_SERVICE_URL=http://service-2:8000 + - MCP_SERVICE_URL=http://service-2:8000 healthcheck: test: - - CMD - - curl - - -f - - http://localhost:3000/ + - CMD + - curl + - -f + - http://localhost:3000/ depends_on: - - service-2 + - service-2 service-2: build: context: ./service-2 dockerfile: Dockerfile ports: - - target: 8000 - published: 8000 - mode: host + - target: 8000 + published: 8000 + mode: host environment: - - ANTHROPIC_API_KEY + - ANTHROPIC_API_KEY deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/metabase/compose.yaml b/samples/metabase/compose.yaml index a8f1e116a..9cab01b60 100644 --- a/samples/metabase/compose.yaml +++ b/samples/metabase/compose.yaml @@ -4,27 +4,27 @@ services: restart: unless-stopped image: metabase/metabase:latest ports: - - mode: ingress - target: 3000 - published: 3000 + - mode: ingress + target: 3000 + published: 3000 healthcheck: test: - - CMD - - curl - - -f - - http://localhost:3000/api/health + - CMD + - curl + - -f + - http://localhost:3000/api/health interval: 1m30s timeout: 30s retries: 5 environment: - - MB_DB_TYPE=postgres - - MB_DB_DBNAME - - MB_DB_PORT - - MB_DB_USER - - MB_DB_PASS - - MB_DB_HOST + - MB_DB_TYPE=postgres + - MB_DB_DBNAME + - MB_DB_PORT + - MB_DB_USER + - MB_DB_PASS + - MB_DB_HOST deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 1024M diff --git a/samples/n8n/compose.yaml b/samples/n8n/compose.yaml index 0fd59ca67..bbfe4ab93 100644 --- a/samples/n8n/compose.yaml +++ b/samples/n8n/compose.yaml @@ -5,54 +5,54 @@ services: x-defang-postgres: true restart: always environment: - - POSTGRES_USER=n8nuser - - POSTGRES_DB=n8ndatabase - - POSTGRES_PASSWORD + - POSTGRES_USER=n8nuser + - POSTGRES_DB=n8ndatabase + - POSTGRES_PASSWORD healthcheck: test: - - CMD-SHELL - - pg_isready -h localhost -U n8nuser -d n8ndatabase + - CMD-SHELL + - pg_isready -h localhost -U n8nuser -d n8ndatabase interval: 5s timeout: 5s retries: 10 deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M n8n: image: docker.n8n.io/n8nio/n8n restart: always environment: - - DB_TYPE=postgresdb - - DB_POSTGRESDB_HOST=postgres - - DB_POSTGRESDB_PORT=5432 - - DB_POSTGRESDB_DATABASE=n8ndatabase - - DB_POSTGRESDB_USER=n8nuser - - N8N_RUNNERS_ENABLED=true - - N8N_HOST=n8n - - N8N_PORT=5678 - - N8N_PROTOCOL=https - - N8N_PROXY_HOPS=1 - - NODE_ENV=production - - WEBHOOK_URL=https://n8n - - DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED - - DB_POSTGRESDB_SSL_ENABLED - - N8N_ENCRYPTION_KEY - - DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD} + - DB_TYPE=postgresdb + - DB_POSTGRESDB_HOST=postgres + - DB_POSTGRESDB_PORT=5432 + - DB_POSTGRESDB_DATABASE=n8ndatabase + - DB_POSTGRESDB_USER=n8nuser + - N8N_RUNNERS_ENABLED=true + - N8N_HOST=n8n + - N8N_PORT=5678 + - N8N_PROTOCOL=https + - N8N_PROXY_HOPS=1 + - NODE_ENV=production + - WEBHOOK_URL=https://n8n + - DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED + - DB_POSTGRESDB_SSL_ENABLED + - N8N_ENCRYPTION_KEY + - DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD} ports: - - 5678:5678 + - 5678:5678 links: - - postgres + - postgres depends_on: postgres: condition: service_healthy healthcheck: test: - - CMD-SHELL - - node --eval "const r = await fetch('http://localhost:5678/healthz'); if(r.status - === 200 || r.status === 201) { process.exit(0); } else { process.exit(1); - };" + - CMD-SHELL + - node --eval "const r = await fetch('http://localhost:5678/healthz'); if(r.status + === 200 || r.status === 201) { process.exit(0); } else { process.exit(1); + };" interval: 10s timeout: 5s retries: 5 @@ -60,5 +60,5 @@ services: deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/nextjs-blog/compose.yaml b/samples/nextjs-blog/compose.yaml index bcb964a2d..017c122d4 100644 --- a/samples/nextjs-blog/compose.yaml +++ b/samples/nextjs-blog/compose.yaml @@ -6,9 +6,9 @@ services: context: ./app dockerfile: Dockerfile ports: - - mode: ingress - target: 3000 - published: 3000 + - mode: ingress + target: 3000 + published: 3000 deploy: resources: reservations: diff --git a/samples/nextjs-claude/compose.yaml b/samples/nextjs-claude/compose.yaml index 2040b1070..af0a95dc9 100644 --- a/samples/nextjs-claude/compose.yaml +++ b/samples/nextjs-claude/compose.yaml @@ -5,18 +5,18 @@ services: context: ./ui dockerfile: Dockerfile ports: - - target: 3000 - published: 3000 - mode: ingress + - target: 3000 + published: 3000 + mode: ingress deploy: resources: reservations: memory: 256M environment: - - ANTHROPIC_API_KEY + - ANTHROPIC_API_KEY healthcheck: test: - - CMD - - curl - - -f - - http://localhost:3000/ + - CMD + - curl + - -f + - http://localhost:3000/ diff --git a/samples/nextjs-cv/compose.yaml b/samples/nextjs-cv/compose.yaml index 7a4049991..7b5bfdf7c 100644 --- a/samples/nextjs-cv/compose.yaml +++ b/samples/nextjs-cv/compose.yaml @@ -6,19 +6,19 @@ services: dockerfile: Dockerfile restart: unless-stopped ports: - - target: 3000 - published: 3000 - mode: ingress + - target: 3000 + published: 3000 + mode: ingress environment: - - NODE_ENV=production + - NODE_ENV=production healthcheck: test: - - CMD - - wget - - --spider - - http://localhost:3000/ + - CMD + - wget + - --spider + - http://localhost:3000/ deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/nextjs-documentation/compose.yaml b/samples/nextjs-documentation/compose.yaml index eeaceae63..ede196c77 100644 --- a/samples/nextjs-documentation/compose.yaml +++ b/samples/nextjs-documentation/compose.yaml @@ -6,9 +6,9 @@ services: context: ./app dockerfile: Dockerfile ports: - - mode: ingress - target: 3000 - published: 3000 + - mode: ingress + target: 3000 + published: 3000 deploy: resources: reservations: diff --git a/samples/nextjs-postgres/compose.yaml b/samples/nextjs-postgres/compose.yaml index bf374bb09..7a2d87b3c 100644 --- a/samples/nextjs-postgres/compose.yaml +++ b/samples/nextjs-postgres/compose.yaml @@ -5,9 +5,9 @@ services: context: ./app dockerfile: Dockerfile ports: - - target: 3000 - published: 3000 - mode: ingress + - target: 3000 + published: 3000 + mode: ingress environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: null @@ -17,16 +17,16 @@ services: POSTGRES_SSL: null healthcheck: test: - - CMD - - curl - - -f - - http://localhost:3000 + - CMD + - curl + - -f + - http://localhost:3000 depends_on: - - database + - database deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M database: image: postgres:16 @@ -34,11 +34,11 @@ services: environment: POSTGRES_PASSWORD: null ports: - - target: 5432 - published: 5432 - mode: host + - target: 5432 + published: 5432 + mode: host deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/nextjs-railpack/compose.yaml b/samples/nextjs-railpack/compose.yaml index 377d89017..73026fa96 100644 --- a/samples/nextjs-railpack/compose.yaml +++ b/samples/nextjs-railpack/compose.yaml @@ -5,13 +5,13 @@ services: build: context: ./app ports: - - target: 3000 - mode: ingress - published: 3000 + - target: 3000 + mode: ingress + published: 3000 environment: PORT: 3000 deploy: resources: reservations: - cpus: '0.25' + cpus: "0.25" memory: 256M diff --git a/samples/nextjs/compose.yaml b/samples/nextjs/compose.yaml index e12d02480..5c281403e 100644 --- a/samples/nextjs/compose.yaml +++ b/samples/nextjs/compose.yaml @@ -6,13 +6,13 @@ services: context: ./app dockerfile: Dockerfile ports: - - target: 3000 - mode: ingress - published: 3000 + - target: 3000 + mode: ingress + published: 3000 healthcheck: test: wget -q --spider http://localhost:3000/ || exit 1 deploy: resources: reservations: - cpus: '0.25' + cpus: "0.25" memory: 256M diff --git a/samples/nocodb/compose.yaml b/samples/nocodb/compose.yaml index 7fd8c35db..dfc44e8de 100644 --- a/samples/nocodb/compose.yaml +++ b/samples/nocodb/compose.yaml @@ -10,11 +10,11 @@ services: NC_S3_ACCESS_KEY: null NC_S3_ACCESS_SECRET: null ports: - - target: 8080 - published: 8080 - mode: ingress + - target: 8080 + published: 8080 + mode: ingress deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/nodejs-chatroom/compose.yaml b/samples/nodejs-chatroom/compose.yaml index f1c7a3a12..46167c8dd 100644 --- a/samples/nodejs-chatroom/compose.yaml +++ b/samples/nodejs-chatroom/compose.yaml @@ -6,16 +6,16 @@ services: context: ./app dockerfile: Dockerfile ports: - - mode: ingress - target: 3000 - published: 3000 + - mode: ingress + target: 3000 + published: 3000 deploy: resources: reservations: memory: 256M healthcheck: test: - - CMD - - curl - - -f - - http://localhost:3000/ + - CMD + - curl + - -f + - http://localhost:3000/ diff --git a/samples/nodejs-express/compose.yaml b/samples/nodejs-express/compose.yaml index 661568f6c..d641862ce 100644 --- a/samples/nodejs-express/compose.yaml +++ b/samples/nodejs-express/compose.yaml @@ -5,16 +5,16 @@ services: build: context: ./app ports: - - mode: ingress - target: 3000 - published: 3000 + - mode: ingress + target: 3000 + published: 3000 deploy: resources: reservations: memory: 256M healthcheck: test: - - CMD - - curl - - -f - - http://localhost:3000/ + - CMD + - curl + - -f + - http://localhost:3000/ diff --git a/samples/nodejs-form/compose.yaml b/samples/nodejs-form/compose.yaml index dbe75f017..e42bc4b8c 100644 --- a/samples/nodejs-form/compose.yaml +++ b/samples/nodejs-form/compose.yaml @@ -6,16 +6,16 @@ services: context: ./app dockerfile: Dockerfile ports: - - mode: ingress - target: 3000 - published: 3000 + - mode: ingress + target: 3000 + published: 3000 deploy: resources: reservations: memory: 256M healthcheck: test: - - CMD - - curl - - -f - - http://localhost:3000/ + - CMD + - curl + - -f + - http://localhost:3000/ diff --git a/samples/nodejs-http/compose.yaml b/samples/nodejs-http/compose.yaml index 3af87db7e..c47ac4e75 100644 --- a/samples/nodejs-http/compose.yaml +++ b/samples/nodejs-http/compose.yaml @@ -6,16 +6,16 @@ services: context: ./app dockerfile: Dockerfile ports: - - mode: ingress - target: 3000 - published: 3000 + - mode: ingress + target: 3000 + published: 3000 deploy: resources: reservations: memory: 256M healthcheck: test: - - CMD - - curl - - -f - - http://localhost:3000/ + - CMD + - curl + - -f + - http://localhost:3000/ diff --git a/samples/nodejs-openai/compose.yaml b/samples/nodejs-openai/compose.yaml index 84122290f..922711170 100644 --- a/samples/nodejs-openai/compose.yaml +++ b/samples/nodejs-openai/compose.yaml @@ -6,18 +6,18 @@ services: context: ./app dockerfile: Dockerfile ports: - - mode: ingress - target: 3000 - published: 3000 + - mode: ingress + target: 3000 + published: 3000 environment: - - OPENAI_KEY + - OPENAI_KEY deploy: resources: reservations: memory: 256M healthcheck: test: - - CMD - - curl - - -f - - http://localhost:3000/ + - CMD + - curl + - -f + - http://localhost:3000/ diff --git a/samples/nodejs-react-postgres/compose.yaml b/samples/nodejs-react-postgres/compose.yaml index 5e262cb6a..a3865e4fd 100644 --- a/samples/nodejs-react-postgres/compose.yaml +++ b/samples/nodejs-react-postgres/compose.yaml @@ -6,30 +6,30 @@ services: context: ./client dockerfile: Dockerfile args: - - REACT_APP_API_URL=https://-server--3010.prod1.defang.dev + - REACT_APP_API_URL=https://-server--3010.prod1.defang.dev ports: - - mode: ingress - target: 3000 - published: 3000 + - mode: ingress + target: 3000 + published: 3000 deploy: resources: reservations: memory: 1g depends_on: - - server + - server server: restart: unless-stopped build: context: ./server dockerfile: Dockerfile ports: - - target: 3010 - mode: ingress - published: 3010 + - target: 3010 + mode: ingress + published: 3010 environment: - - DATABASE_URL + - DATABASE_URL deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/nodejs-rest-api/compose.yaml b/samples/nodejs-rest-api/compose.yaml index d14d31f72..6690a56b3 100644 --- a/samples/nodejs-rest-api/compose.yaml +++ b/samples/nodejs-rest-api/compose.yaml @@ -6,16 +6,16 @@ services: context: ./app dockerfile: Dockerfile ports: - - mode: ingress - target: 3000 - published: 3000 + - mode: ingress + target: 3000 + published: 3000 deploy: resources: reservations: memory: 256M healthcheck: test: - - CMD - - curl - - -f - - http://localhost:3000/ + - CMD + - curl + - -f + - http://localhost:3000/ diff --git a/samples/nodejs-s3/compose.yaml b/samples/nodejs-s3/compose.yaml index e62804858..8d6e2c67f 100644 --- a/samples/nodejs-s3/compose.yaml +++ b/samples/nodejs-s3/compose.yaml @@ -6,19 +6,19 @@ services: context: ./app dockerfile: Dockerfile ports: - - mode: ingress - target: 3000 - published: 3000 + - mode: ingress + target: 3000 + published: 3000 environment: - - AWS_ACCESS_KEY - - AWS_SECRET_KEY + - AWS_ACCESS_KEY + - AWS_SECRET_KEY deploy: resources: reservations: memory: 256M healthcheck: test: - - CMD - - curl - - -f - - http://localhost:3000/ + - CMD + - curl + - -f + - http://localhost:3000/ diff --git a/samples/nounly/compose.yaml b/samples/nounly/compose.yaml index 7bbcde15b..64e267e02 100644 --- a/samples/nounly/compose.yaml +++ b/samples/nounly/compose.yaml @@ -10,20 +10,20 @@ services: memory: 512M healthcheck: test: - - CMD - - wget - - --spider - - -qO- - - http://localhost:2345/v1/status + - CMD + - wget + - --spider + - -qO- + - http://localhost:2345/v1/status ports: - - 2345:2345 + - 2345:2345 environment: PORT: 2345 REDIS: redis:6379 PROJECT_HONEYPOT_KEY: null - SHARED_SECRETS: '{}' + SHARED_SECRETS: "{}" depends_on: - - redis + - redis redis: restart: always image: redis:alpine @@ -32,9 +32,9 @@ services: reservations: memory: 512M ports: - - target: 6379 - published: 6379 - protocol: tcp - mode: host + - target: 6379 + published: 6379 + protocol: tcp + mode: host platform: linux/arm64 x-defang-redis: true diff --git a/samples/ollama/compose.yaml b/samples/ollama/compose.yaml index b1652ac76..74bcde931 100644 --- a/samples/ollama/compose.yaml +++ b/samples/ollama/compose.yaml @@ -6,41 +6,41 @@ services: dockerfile: Dockerfile shm_size: 16gb ports: - - target: 8000 - mode: host + - target: 8000 + mode: host deploy: resources: reservations: - cpus: '2.0' + cpus: "2.0" memory: 8192M environment: - - LOAD_MODEL=llama3.2:1b + - LOAD_MODEL=llama3.2:1b healthcheck: test: - - CMD - - curl - - -s - - http://localhost:8000/ + - CMD + - curl + - -s + - http://localhost:8000/ ui: build: context: ui dockerfile: Dockerfile ports: - - mode: ingress - target: 3000 - published: 3000 + - mode: ingress + target: 3000 + published: 3000 deploy: resources: reservations: memory: 256M healthcheck: test: - - CMD - - curl - - -s - - http://localhost:3000/ + - CMD + - curl + - -s + - http://localhost:3000/ environment: - - OLLAMA_ENDPOINT=http://ollama:8000 - - LOAD_MODEL=llama3.2:1b + - OLLAMA_ENDPOINT=http://ollama:8000 + - LOAD_MODEL=llama3.2:1b depends_on: - - ollama + - ollama diff --git a/samples/phoenix-postgres/compose.yaml b/samples/phoenix-postgres/compose.yaml index 8b58b2319..f32ebdec5 100644 --- a/samples/phoenix-postgres/compose.yaml +++ b/samples/phoenix-postgres/compose.yaml @@ -6,15 +6,15 @@ services: context: ./server dockerfile: Dockerfile ports: - - target: 4000 - mode: ingress - published: 4000 + - target: 4000 + mode: ingress + published: 4000 deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 1024M environment: - - PORT=4000 - - SECRET_KEY_BASE - - DATABASE_URL + - PORT=4000 + - SECRET_KEY_BASE + - DATABASE_URL diff --git a/samples/platformatic/compose.yaml b/samples/platformatic/compose.yaml index 8c3fd80b1..0367cdefc 100644 --- a/samples/platformatic/compose.yaml +++ b/samples/platformatic/compose.yaml @@ -5,9 +5,9 @@ services: context: ./app dockerfile: Dockerfile ports: - - target: 3042 - published: 3042 - mode: ingress + - target: 3042 + published: 3042 + mode: ingress environment: NODE_ENV: production PLT_SERVER_HOSTNAME: 0.0.0.0 @@ -19,5 +19,5 @@ services: deploy: resources: limits: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/python-form/compose.yaml b/samples/python-form/compose.yaml index 2be8922ed..111e8948a 100644 --- a/samples/python-form/compose.yaml +++ b/samples/python-form/compose.yaml @@ -6,15 +6,15 @@ services: context: ./app dockerfile: Dockerfile ports: - - mode: ingress - target: 5000 + - mode: ingress + target: 5000 deploy: resources: reservations: memory: 256M healthcheck: test: - - CMD - - curl - - -f - - http://localhost:5000/ + - CMD + - curl + - -f + - http://localhost:5000/ diff --git a/samples/python-implicit-gpu/compose.yaml b/samples/python-implicit-gpu/compose.yaml index a230b72e6..397592aaa 100644 --- a/samples/python-implicit-gpu/compose.yaml +++ b/samples/python-implicit-gpu/compose.yaml @@ -8,17 +8,17 @@ services: deploy: resources: reservations: - cpus: '1.0' + cpus: "1.0" memory: 2048M devices: - - capabilities: - - gpu + - capabilities: + - gpu ports: - - mode: ingress - target: 5000 + - mode: ingress + target: 5000 healthcheck: test: - - CMD - - curl - - -f - - http://localhost:5000/ + - CMD + - curl + - -f + - http://localhost:5000/ diff --git a/samples/python-minimal/compose.yaml b/samples/python-minimal/compose.yaml index dccb7992d..d6f4c9b70 100644 --- a/samples/python-minimal/compose.yaml +++ b/samples/python-minimal/compose.yaml @@ -6,15 +6,15 @@ services: context: ./app dockerfile: Dockerfile ports: - - mode: ingress - target: 5000 + - mode: ingress + target: 5000 deploy: resources: reservations: memory: 256M healthcheck: test: - - CMD - - curl - - -f - - http://localhost:5000/ + - CMD + - curl + - -f + - http://localhost:5000/ diff --git a/samples/python-openai/compose.yaml b/samples/python-openai/compose.yaml index 88ad047d8..9d131ec26 100644 --- a/samples/python-openai/compose.yaml +++ b/samples/python-openai/compose.yaml @@ -6,17 +6,17 @@ services: context: ./app dockerfile: Dockerfile ports: - - mode: ingress - target: 5000 + - mode: ingress + target: 5000 environment: - - OPENAI_KEY + - OPENAI_KEY deploy: resources: reservations: memory: 256M healthcheck: test: - - CMD - - curl - - -f - - http://localhost:5000/ + - CMD + - curl + - -f + - http://localhost:5000/ diff --git a/samples/python-rest-api/compose.yaml b/samples/python-rest-api/compose.yaml index 272809b4f..765ce6ab1 100644 --- a/samples/python-rest-api/compose.yaml +++ b/samples/python-rest-api/compose.yaml @@ -6,15 +6,15 @@ services: context: ./app dockerfile: Dockerfile ports: - - mode: ingress - target: 5000 + - mode: ingress + target: 5000 deploy: resources: reservations: memory: 256M healthcheck: test: - - CMD - - curl - - -f - - http://localhost:5000/ + - CMD + - curl + - -f + - http://localhost:5000/ diff --git a/samples/python-s3/compose.yaml b/samples/python-s3/compose.yaml index aa78a3553..455ec785d 100644 --- a/samples/python-s3/compose.yaml +++ b/samples/python-s3/compose.yaml @@ -6,18 +6,18 @@ services: context: ./app dockerfile: Dockerfile ports: - - mode: ingress - target: 5000 + - mode: ingress + target: 5000 environment: - - AWS_ACCESS_KEY - - AWS_SECRET_KEY + - AWS_ACCESS_KEY + - AWS_SECRET_KEY deploy: resources: reservations: memory: 256M healthcheck: test: - - CMD - - curl - - -f - - http://localhost:5000/ + - CMD + - curl + - -f + - http://localhost:5000/ diff --git a/samples/rails/compose.yaml b/samples/rails/compose.yaml index bca98c0c0..d96fea67d 100644 --- a/samples/rails/compose.yaml +++ b/samples/rails/compose.yaml @@ -6,48 +6,48 @@ services: context: ./app dockerfile: Dockerfile env_file: - - .env + - .env environment: POSTGRES_PASSWORD: null ports: - - mode: ingress - target: 3000 - published: 3000 + - mode: ingress + target: 3000 + published: 3000 deploy: resources: reservations: memory: 1GB healthcheck: test: - - CMD - - curl - - -f - - http://localhost:3000 + - CMD + - curl + - -f + - http://localhost:3000 interval: 10s timeout: 5s retries: 5 depends_on: - - db - - migrate + - db + - migrate migrate: - restart: 'no' + restart: "no" build: context: ./app dockerfile: Dockerfile env_file: - - .env + - .env environment: POSTGRES_PASSWORD: null command: - - bin/rails - - db:prepare + - bin/rails + - db:prepare depends_on: db: condition: service_healthy deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M db: restart: unless-stopped @@ -56,12 +56,12 @@ services: environment: POSTGRES_PASSWORD: null ports: - - mode: host - target: 5432 + - mode: host + target: 5432 healthcheck: test: - - CMD-SHELL - - pg_isready -U postgres + - CMD-SHELL + - pg_isready -U postgres interval: 10s timeout: 5s retries: 5 diff --git a/samples/react-vite-railpack/compose.yaml b/samples/react-vite-railpack/compose.yaml index fae2b1dda..72d406d6d 100644 --- a/samples/react-vite-railpack/compose.yaml +++ b/samples/react-vite-railpack/compose.yaml @@ -7,9 +7,9 @@ services: environment: PORT: 5173 ports: - - target: 5173 - published: 5173 - mode: ingress + - target: 5173 + published: 5173 + mode: ingress deploy: resources: reservations: diff --git a/samples/react/compose.yaml b/samples/react/compose.yaml index 059aaa4df..9ab769240 100644 --- a/samples/react/compose.yaml +++ b/samples/react/compose.yaml @@ -6,16 +6,16 @@ services: context: ./app dockerfile: Dockerfile ports: - - target: 5173 - published: 5173 - mode: ingress + - target: 5173 + published: 5173 + mode: ingress deploy: resources: reservations: memory: 512M healthcheck: test: - - CMD - - curl - - -f - - http://localhost:5173/ + - CMD + - curl + - -f + - http://localhost:5173/ diff --git a/samples/redis-js/compose.yaml b/samples/redis-js/compose.yaml index 4ebd6c948..df229d5d3 100644 --- a/samples/redis-js/compose.yaml +++ b/samples/redis-js/compose.yaml @@ -3,27 +3,27 @@ services: app: build: ./app ports: - - 3000:3000 + - 3000:3000 environment: - - REDISX_URL=redis://redisx:6379 + - REDISX_URL=redis://redisx:6379 depends_on: - - redisx + - redisx deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M redisx: image: redis:latest x-defang-redis: true restart: unless-stopped ports: - - target: 6379 - published: 6379 - protocol: tcp - mode: host + - target: 6379 + published: 6379 + protocol: tcp + mode: host deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/rocket/compose.yaml b/samples/rocket/compose.yaml index df1dfdf56..83b1d50a3 100644 --- a/samples/rocket/compose.yaml +++ b/samples/rocket/compose.yaml @@ -5,17 +5,17 @@ services: context: ./app dockerfile: Dockerfile ports: - - target: 8080 - published: 8080 - mode: ingress + - target: 8080 + published: 8080 + mode: ingress healthcheck: test: - - CMD - - curl - - -f - - http://localhost:8080 + - CMD + - curl + - -f + - http://localhost:8080 deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/sailsjs-postgres/compose.yaml b/samples/sailsjs-postgres/compose.yaml index 67f60e514..8b53588c6 100644 --- a/samples/sailsjs-postgres/compose.yaml +++ b/samples/sailsjs-postgres/compose.yaml @@ -4,28 +4,28 @@ services: restart: unless-stopped build: ./app ports: - - target: 1337 - published: 1337 - mode: ingress + - target: 1337 + published: 1337 + mode: ingress environment: DATABASE_URL: null SESSION_SECRET: null command: - - sails - - lift - - --prod + - sails + - lift + - --prod networks: - - app-network + - app-network healthcheck: test: - - CMD - - curl - - -f - - http://localhost:1337/ + - CMD + - curl + - -f + - http://localhost:1337/ deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M networks: app-network: diff --git a/samples/sailsjs/compose.yaml b/samples/sailsjs/compose.yaml index f37b6002a..2f35fc526 100644 --- a/samples/sailsjs/compose.yaml +++ b/samples/sailsjs/compose.yaml @@ -5,18 +5,18 @@ services: build: context: ./sails ports: - - target: 1337 - published: 1337 - protocol: tcp - mode: ingress + - target: 1337 + published: 1337 + protocol: tcp + mode: ingress volumes: - - ./sails:/usr/src/app - - /usr/src/app/node_modules + - ./sails:/usr/src/app + - /usr/src/app/node_modules environment: - - NODE_ENV=production + - NODE_ENV=production command: sails lift --prod deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M diff --git a/samples/svelte-mysql/compose.yaml b/samples/svelte-mysql/compose.yaml index 5095b703f..bcc2aa2a4 100644 --- a/samples/svelte-mysql/compose.yaml +++ b/samples/svelte-mysql/compose.yaml @@ -9,14 +9,14 @@ services: MYSQL_USER: admin MYSQL_PASSWORD: Defang12345 volumes: - - mysql_data:/var/lib/mysql + - mysql_data:/var/lib/mysql ports: - - mode: host - target: 3306 + - mode: host + target: 3306 deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M app: restart: unless-stopped @@ -27,19 +27,19 @@ services: DATABASE_PASSWORD: Defang12345 DATABASE_NAME: todoApp ports: - - 3001:3001 + - 3001:3001 depends_on: - - db + - db healthcheck: test: - - CMD - - curl - - -f - - http://localhost:3001/ + - CMD + - curl + - -f + - http://localhost:3001/ deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M volumes: mysql_data: null diff --git a/samples/sveltekit-mongodb/compose.yaml b/samples/sveltekit-mongodb/compose.yaml index d387c9546..76e406b98 100644 --- a/samples/sveltekit-mongodb/compose.yaml +++ b/samples/sveltekit-mongodb/compose.yaml @@ -13,35 +13,35 @@ services: PORT: 3000 MONGODB_URI: mongodb://mongo:27017/musicdb ports: - - 3000:3000 + - 3000:3000 depends_on: - - mongo + - mongo healthcheck: test: - - CMD - - curl - - -f - - http://localhost:3000/ + - CMD + - curl + - -f + - http://localhost:3000/ deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M mongo: restart: unless-stopped image: mongo:latest ports: - - mode: host - target: 27017 + - mode: host + target: 27017 volumes: - - mongo-data:/data/db + - mongo-data:/data/db environment: MONGO_INITDB_DATABASE: musicdb x-defang-mongodb: true deploy: resources: reservations: - cpus: '0.5' + cpus: "0.5" memory: 512M volumes: mongo-data: null diff --git a/samples/sveltekit/compose.yaml b/samples/sveltekit/compose.yaml index 47641e935..93cc1baf5 100644 --- a/samples/sveltekit/compose.yaml +++ b/samples/sveltekit/compose.yaml @@ -6,11 +6,11 @@ services: context: ./sveltekit dockerfile: Dockerfile ports: - - target: 3000 - mode: ingress - published: 3000 + - target: 3000 + mode: ingress + published: 3000 deploy: resources: reservations: - cpus: '0.50' + cpus: "0.50" memory: 512M diff --git a/samples/vllm/compose.yaml b/samples/vllm/compose.yaml index 3cc399f36..659c61eaf 100644 --- a/samples/vllm/compose.yaml +++ b/samples/vllm/compose.yaml @@ -4,65 +4,65 @@ services: restart: unless-stopped image: ghcr.io/mistralai/mistral-src/vllm:latest ports: - - mode: host - target: 8000 + - mode: host + target: 8000 command: - - --host - - 0.0.0.0 - - --model - - TheBloke/Mistral-7B-Instruct-v0.2-AWQ - - --quantization - - awq - - --dtype - - auto - - --tensor-parallel-size - - '1' - - --gpu-memory-utilization - - '.95' - - --max-model-len - - '8000' + - --host + - 0.0.0.0 + - --model + - TheBloke/Mistral-7B-Instruct-v0.2-AWQ + - --quantization + - awq + - --dtype + - auto + - --tensor-parallel-size + - "1" + - --gpu-memory-utilization + - ".95" + - --max-model-len + - "8000" deploy: resources: reservations: - cpus: '2.0' + cpus: "2.0" memory: 8192M devices: - - capabilities: - - gpu - count: 1 + - capabilities: + - gpu + count: 1 healthcheck: test: - - CMD - - python3 - - -c - - import sys, urllib.request;urllib.request.urlopen(sys.argv[1]).read() - - http://localhost:8000/health + - CMD + - python3 + - -c + - import sys, urllib.request;urllib.request.urlopen(sys.argv[1]).read() + - http://localhost:8000/health interval: 1m environment: - - HF_TOKEN + - HF_TOKEN ui: restart: unless-stopped build: context: ui dockerfile: Dockerfile ports: - - mode: ingress - target: 3000 - published: 3000 + - mode: ingress + target: 3000 + published: 3000 deploy: resources: reservations: memory: 256M healthcheck: test: - - CMD - - wget - - --spider - - http://localhost:3000 + - CMD + - wget + - --spider + - http://localhost:3000 interval: 10s timeout: 2s retries: 10 environment: - - OPENAI_BASE_URL=http://mistral:8000/v1/ + - OPENAI_BASE_URL=http://mistral:8000/v1/ depends_on: - - mistral + - mistral diff --git a/samples/vuejs/compose.yaml b/samples/vuejs/compose.yaml index d4f8f8e2f..ff98764d7 100644 --- a/samples/vuejs/compose.yaml +++ b/samples/vuejs/compose.yaml @@ -6,16 +6,16 @@ services: context: ./app dockerfile: Dockerfile ports: - - target: 5173 - published: 5173 - mode: ingress + - target: 5173 + published: 5173 + mode: ingress deploy: resources: reservations: memory: 512M healthcheck: test: - - CMD - - curl - - -f - - http://localhost:5173/ + - CMD + - curl + - -f + - http://localhost:5173/ From f01b605d07665bb353308b05da38ba745cf05be9 Mon Sep 17 00:00:00 2001 From: jordanstephens Date: Mon, 2 Feb 2026 15:44:16 -0800 Subject: [PATCH 22/22] add concurrency to defang job --- samples/agentic-autogen/.github/workflows/deploy.yaml | 4 ++++ samples/agentic-langgraph/.github/workflows/deploy.yaml | 4 ++++ samples/agentic-strands/.github/workflows/deploy.yaml | 4 ++++ samples/angular-express/.github/workflows/deploy.yaml | 4 ++++ samples/arduino-wifi/.github/workflows/deploy.yaml | 4 ++++ samples/bullmq-bullboard-redis/.github/workflows/deploy.yaml | 4 ++++ samples/crewai/.github/workflows/deploy.yaml | 4 ++++ samples/csharp-dotnet/.github/workflows/deploy.yaml | 4 ++++ samples/django-celery/.github/workflows/deploy.yaml | 4 ++++ samples/django-postgres/.github/workflows/deploy.yaml | 4 ++++ samples/django-railpack/.github/workflows/deploy.yaml | 4 ++++ samples/django-redis-postgres/.github/workflows/deploy.yaml | 4 ++++ samples/django/.github/workflows/deploy.yaml | 4 ++++ samples/elysia/.github/workflows/deploy.yaml | 4 ++++ samples/fastapi-postgres-pubsub/.github/workflows/deploy.yaml | 4 ++++ samples/fastapi-postgres/.github/workflows/deploy.yaml | 4 ++++ samples/fastapi/.github/workflows/deploy.yaml | 4 ++++ samples/feathersjs/.github/workflows/deploy.yaml | 4 ++++ samples/flask-railpack/.github/workflows/deploy.yaml | 4 ++++ samples/flask/.github/workflows/deploy.yaml | 4 ++++ samples/golang-http-form/.github/workflows/deploy.yaml | 4 ++++ samples/golang-http/.github/workflows/deploy.yaml | 4 ++++ samples/golang-mongodb/.github/workflows/deploy.yaml | 4 ++++ samples/golang-openai/.github/workflows/deploy.yaml | 4 ++++ samples/golang-railpack/.github/workflows/deploy.yaml | 4 ++++ samples/golang-rest-api/.github/workflows/deploy.yaml | 4 ++++ samples/golang-s3/.github/workflows/deploy.yaml | 4 ++++ samples/golang-slackbot/.github/workflows/deploy.yaml | 4 ++++ samples/hasura/.github/workflows/deploy.yaml | 4 ++++ samples/html-css-js/.github/workflows/deploy.yaml | 4 ++++ samples/huginn/.github/workflows/deploy.yaml | 4 ++++ samples/imgproxy/.github/workflows/deploy.yaml | 4 ++++ samples/javalin/.github/workflows/deploy.yaml | 4 ++++ samples/jupyter-postgres/.github/workflows/deploy.yaml | 4 ++++ samples/langchain/.github/workflows/deploy.yaml | 4 ++++ samples/managed-llm-provider/.github/workflows/deploy.yaml | 4 ++++ samples/managed-llm/.github/workflows/deploy.yaml | 4 ++++ samples/mastra-nextjs/.github/workflows/deploy.yaml | 4 ++++ samples/mcp/.github/workflows/deploy.yaml | 4 ++++ samples/metabase/.github/workflows/deploy.yaml | 4 ++++ samples/n8n/.github/workflows/deploy.yaml | 4 ++++ samples/nextjs-blog/.github/workflows/deploy.yaml | 4 ++++ samples/nextjs-claude/.github/workflows/deploy.yaml | 4 ++++ samples/nextjs-cv/.github/workflows/deploy.yaml | 4 ++++ samples/nextjs-documentation/.github/workflows/deploy.yaml | 4 ++++ samples/nextjs-postgres/.github/workflows/deploy.yaml | 4 ++++ samples/nextjs-railpack/.github/workflows/deploy.yaml | 4 ++++ samples/nextjs/.github/workflows/deploy.yaml | 4 ++++ samples/nocodb/.github/workflows/deploy.yaml | 4 ++++ samples/nodejs-chatroom/.github/workflows/deploy.yaml | 4 ++++ samples/nodejs-express/.github/workflows/deploy.yaml | 4 ++++ samples/nodejs-form/.github/workflows/deploy.yaml | 4 ++++ samples/nodejs-http/.github/workflows/deploy.yaml | 4 ++++ samples/nodejs-openai/.github/workflows/deploy.yaml | 4 ++++ samples/nodejs-react-postgres/.github/workflows/deploy.yaml | 4 ++++ samples/nodejs-rest-api/.github/workflows/deploy.yaml | 4 ++++ samples/nodejs-s3/.github/workflows/deploy.yaml | 4 ++++ samples/nounly/.github/workflows/deploy.yaml | 4 ++++ samples/ollama/.github/workflows/deploy.yaml | 4 ++++ samples/phoenix-postgres/.github/workflows/deploy.yaml | 4 ++++ samples/platformatic/.github/workflows/deploy.yaml | 4 ++++ samples/python-form/.github/workflows/deploy.yaml | 4 ++++ samples/python-implicit-gpu/.github/workflows/deploy.yaml | 4 ++++ samples/python-minimal/.github/workflows/deploy.yaml | 4 ++++ samples/python-openai/.github/workflows/deploy.yaml | 4 ++++ samples/python-rest-api/.github/workflows/deploy.yaml | 4 ++++ samples/python-s3/.github/workflows/deploy.yaml | 4 ++++ samples/rails/.github/workflows/deploy.yaml | 4 ++++ samples/react-vite-railpack/.github/workflows/deploy.yaml | 4 ++++ samples/react/.github/workflows/deploy.yaml | 4 ++++ samples/redis-js/.github/workflows/deploy.yaml | 4 ++++ samples/rocket/.github/workflows/deploy.yaml | 4 ++++ samples/sailsjs-postgres/.github/workflows/deploy.yaml | 3 +++ samples/sailsjs/.github/workflows/deploy.yaml | 4 ++++ samples/svelte-mysql/.github/workflows/deploy.yaml | 4 ++++ samples/sveltekit-mongodb/.github/workflows/deploy.yaml | 4 ++++ samples/sveltekit/.github/workflows/deploy.yaml | 4 ++++ samples/vllm/.github/workflows/deploy.yaml | 4 ++++ samples/vuejs/.github/workflows/deploy.yaml | 4 ++++ 79 files changed, 315 insertions(+) diff --git a/samples/agentic-autogen/.github/workflows/deploy.yaml b/samples/agentic-autogen/.github/workflows/deploy.yaml index b4255297f..dd64ec1d5 100644 --- a/samples/agentic-autogen/.github/workflows/deploy.yaml +++ b/samples/agentic-autogen/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-agentic-autogen-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/agentic-langgraph/.github/workflows/deploy.yaml b/samples/agentic-langgraph/.github/workflows/deploy.yaml index b2d783ea9..1880dbfe4 100644 --- a/samples/agentic-langgraph/.github/workflows/deploy.yaml +++ b/samples/agentic-langgraph/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-agentic-langgraph-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/agentic-strands/.github/workflows/deploy.yaml b/samples/agentic-strands/.github/workflows/deploy.yaml index e2b8cbae0..6ff858bec 100644 --- a/samples/agentic-strands/.github/workflows/deploy.yaml +++ b/samples/agentic-strands/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-agentic-strands-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/angular-express/.github/workflows/deploy.yaml b/samples/angular-express/.github/workflows/deploy.yaml index e2b8cbae0..e724d51d9 100644 --- a/samples/angular-express/.github/workflows/deploy.yaml +++ b/samples/angular-express/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-angular-express-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/arduino-wifi/.github/workflows/deploy.yaml b/samples/arduino-wifi/.github/workflows/deploy.yaml index e2b8cbae0..6676a7413 100644 --- a/samples/arduino-wifi/.github/workflows/deploy.yaml +++ b/samples/arduino-wifi/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-arduino-wifi-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/bullmq-bullboard-redis/.github/workflows/deploy.yaml b/samples/bullmq-bullboard-redis/.github/workflows/deploy.yaml index e2b8cbae0..c933c947c 100644 --- a/samples/bullmq-bullboard-redis/.github/workflows/deploy.yaml +++ b/samples/bullmq-bullboard-redis/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-bullmq-bullboard-redis-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/crewai/.github/workflows/deploy.yaml b/samples/crewai/.github/workflows/deploy.yaml index cc9ba40da..8c19923cd 100644 --- a/samples/crewai/.github/workflows/deploy.yaml +++ b/samples/crewai/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-crewai-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/csharp-dotnet/.github/workflows/deploy.yaml b/samples/csharp-dotnet/.github/workflows/deploy.yaml index e2b8cbae0..b899355d9 100644 --- a/samples/csharp-dotnet/.github/workflows/deploy.yaml +++ b/samples/csharp-dotnet/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-csharp-dotnet-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/django-celery/.github/workflows/deploy.yaml b/samples/django-celery/.github/workflows/deploy.yaml index fed0c0088..64d496602 100644 --- a/samples/django-celery/.github/workflows/deploy.yaml +++ b/samples/django-celery/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-django-celery-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/django-postgres/.github/workflows/deploy.yaml b/samples/django-postgres/.github/workflows/deploy.yaml index 9f239f753..319f12cfc 100644 --- a/samples/django-postgres/.github/workflows/deploy.yaml +++ b/samples/django-postgres/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-django-postgres-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/django-railpack/.github/workflows/deploy.yaml b/samples/django-railpack/.github/workflows/deploy.yaml index e2b8cbae0..1619077da 100644 --- a/samples/django-railpack/.github/workflows/deploy.yaml +++ b/samples/django-railpack/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-django-railpack-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/django-redis-postgres/.github/workflows/deploy.yaml b/samples/django-redis-postgres/.github/workflows/deploy.yaml index 83ea72370..206839f6e 100644 --- a/samples/django-redis-postgres/.github/workflows/deploy.yaml +++ b/samples/django-redis-postgres/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-django-redis-postgres-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/django/.github/workflows/deploy.yaml b/samples/django/.github/workflows/deploy.yaml index e2b8cbae0..8c940c5c7 100644 --- a/samples/django/.github/workflows/deploy.yaml +++ b/samples/django/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-django-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/elysia/.github/workflows/deploy.yaml b/samples/elysia/.github/workflows/deploy.yaml index e2b8cbae0..91c9571c8 100644 --- a/samples/elysia/.github/workflows/deploy.yaml +++ b/samples/elysia/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-elysia-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/fastapi-postgres-pubsub/.github/workflows/deploy.yaml b/samples/fastapi-postgres-pubsub/.github/workflows/deploy.yaml index 11b67d7a5..43d9bcd03 100644 --- a/samples/fastapi-postgres-pubsub/.github/workflows/deploy.yaml +++ b/samples/fastapi-postgres-pubsub/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-fastapi-postgres-pubsub-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/fastapi-postgres/.github/workflows/deploy.yaml b/samples/fastapi-postgres/.github/workflows/deploy.yaml index e2b8cbae0..095863dab 100644 --- a/samples/fastapi-postgres/.github/workflows/deploy.yaml +++ b/samples/fastapi-postgres/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-fastapi-postgres-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/fastapi/.github/workflows/deploy.yaml b/samples/fastapi/.github/workflows/deploy.yaml index e2b8cbae0..053268ae8 100644 --- a/samples/fastapi/.github/workflows/deploy.yaml +++ b/samples/fastapi/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-fastapi-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/feathersjs/.github/workflows/deploy.yaml b/samples/feathersjs/.github/workflows/deploy.yaml index e2b8cbae0..8534711e9 100644 --- a/samples/feathersjs/.github/workflows/deploy.yaml +++ b/samples/feathersjs/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-feathersjs-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/flask-railpack/.github/workflows/deploy.yaml b/samples/flask-railpack/.github/workflows/deploy.yaml index e2b8cbae0..80a4e622c 100644 --- a/samples/flask-railpack/.github/workflows/deploy.yaml +++ b/samples/flask-railpack/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-flask-railpack-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/flask/.github/workflows/deploy.yaml b/samples/flask/.github/workflows/deploy.yaml index e2b8cbae0..319fa7212 100644 --- a/samples/flask/.github/workflows/deploy.yaml +++ b/samples/flask/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-flask-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/golang-http-form/.github/workflows/deploy.yaml b/samples/golang-http-form/.github/workflows/deploy.yaml index e2b8cbae0..3165fb805 100644 --- a/samples/golang-http-form/.github/workflows/deploy.yaml +++ b/samples/golang-http-form/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-golang-http-form-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/golang-http/.github/workflows/deploy.yaml b/samples/golang-http/.github/workflows/deploy.yaml index e2b8cbae0..510a64df9 100644 --- a/samples/golang-http/.github/workflows/deploy.yaml +++ b/samples/golang-http/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-golang-http-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/golang-mongodb/.github/workflows/deploy.yaml b/samples/golang-mongodb/.github/workflows/deploy.yaml index e2b8cbae0..de80de789 100644 --- a/samples/golang-mongodb/.github/workflows/deploy.yaml +++ b/samples/golang-mongodb/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-golang-mongodb-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/golang-openai/.github/workflows/deploy.yaml b/samples/golang-openai/.github/workflows/deploy.yaml index e2b8cbae0..69a9d0533 100644 --- a/samples/golang-openai/.github/workflows/deploy.yaml +++ b/samples/golang-openai/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-golang-openai-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/golang-railpack/.github/workflows/deploy.yaml b/samples/golang-railpack/.github/workflows/deploy.yaml index e2b8cbae0..c8c30101d 100644 --- a/samples/golang-railpack/.github/workflows/deploy.yaml +++ b/samples/golang-railpack/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-golang-railpack-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/golang-rest-api/.github/workflows/deploy.yaml b/samples/golang-rest-api/.github/workflows/deploy.yaml index e2b8cbae0..fb39ba126 100644 --- a/samples/golang-rest-api/.github/workflows/deploy.yaml +++ b/samples/golang-rest-api/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-golang-rest-api-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/golang-s3/.github/workflows/deploy.yaml b/samples/golang-s3/.github/workflows/deploy.yaml index e2b8cbae0..a2ac3b59f 100644 --- a/samples/golang-s3/.github/workflows/deploy.yaml +++ b/samples/golang-s3/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-golang-s3-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/golang-slackbot/.github/workflows/deploy.yaml b/samples/golang-slackbot/.github/workflows/deploy.yaml index e2b8cbae0..84b109feb 100644 --- a/samples/golang-slackbot/.github/workflows/deploy.yaml +++ b/samples/golang-slackbot/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-golang-slackbot-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/hasura/.github/workflows/deploy.yaml b/samples/hasura/.github/workflows/deploy.yaml index e2b8cbae0..95acd8842 100644 --- a/samples/hasura/.github/workflows/deploy.yaml +++ b/samples/hasura/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-hasura-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/html-css-js/.github/workflows/deploy.yaml b/samples/html-css-js/.github/workflows/deploy.yaml index e2b8cbae0..252d3421c 100644 --- a/samples/html-css-js/.github/workflows/deploy.yaml +++ b/samples/html-css-js/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-html-css-js-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/huginn/.github/workflows/deploy.yaml b/samples/huginn/.github/workflows/deploy.yaml index e2b8cbae0..7d9fe09d3 100644 --- a/samples/huginn/.github/workflows/deploy.yaml +++ b/samples/huginn/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-huginn-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/imgproxy/.github/workflows/deploy.yaml b/samples/imgproxy/.github/workflows/deploy.yaml index e2b8cbae0..4f3aa71e7 100644 --- a/samples/imgproxy/.github/workflows/deploy.yaml +++ b/samples/imgproxy/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-imgproxy-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/javalin/.github/workflows/deploy.yaml b/samples/javalin/.github/workflows/deploy.yaml index e2b8cbae0..311e3a002 100644 --- a/samples/javalin/.github/workflows/deploy.yaml +++ b/samples/javalin/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-javalin-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/jupyter-postgres/.github/workflows/deploy.yaml b/samples/jupyter-postgres/.github/workflows/deploy.yaml index 15ce73ef0..e602a25e7 100644 --- a/samples/jupyter-postgres/.github/workflows/deploy.yaml +++ b/samples/jupyter-postgres/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-jupyter-postgres-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/langchain/.github/workflows/deploy.yaml b/samples/langchain/.github/workflows/deploy.yaml index e2b8cbae0..0080af50d 100644 --- a/samples/langchain/.github/workflows/deploy.yaml +++ b/samples/langchain/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-langchain-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/managed-llm-provider/.github/workflows/deploy.yaml b/samples/managed-llm-provider/.github/workflows/deploy.yaml index e2b8cbae0..2da6f5c10 100644 --- a/samples/managed-llm-provider/.github/workflows/deploy.yaml +++ b/samples/managed-llm-provider/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-managed-llm-provider-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/managed-llm/.github/workflows/deploy.yaml b/samples/managed-llm/.github/workflows/deploy.yaml index b9c2dae8a..f1975e9ac 100644 --- a/samples/managed-llm/.github/workflows/deploy.yaml +++ b/samples/managed-llm/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-managed-llm-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/mastra-nextjs/.github/workflows/deploy.yaml b/samples/mastra-nextjs/.github/workflows/deploy.yaml index eaee7ae83..5dc4b38e4 100644 --- a/samples/mastra-nextjs/.github/workflows/deploy.yaml +++ b/samples/mastra-nextjs/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-mastra-nextjs-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/mcp/.github/workflows/deploy.yaml b/samples/mcp/.github/workflows/deploy.yaml index c3f39c56e..72aae8da7 100644 --- a/samples/mcp/.github/workflows/deploy.yaml +++ b/samples/mcp/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-mcp-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/metabase/.github/workflows/deploy.yaml b/samples/metabase/.github/workflows/deploy.yaml index e2b8cbae0..453139cf6 100644 --- a/samples/metabase/.github/workflows/deploy.yaml +++ b/samples/metabase/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-metabase-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/n8n/.github/workflows/deploy.yaml b/samples/n8n/.github/workflows/deploy.yaml index df8fbc05e..653f66828 100644 --- a/samples/n8n/.github/workflows/deploy.yaml +++ b/samples/n8n/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-n8n-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/nextjs-blog/.github/workflows/deploy.yaml b/samples/nextjs-blog/.github/workflows/deploy.yaml index e2b8cbae0..f5de4fd1a 100644 --- a/samples/nextjs-blog/.github/workflows/deploy.yaml +++ b/samples/nextjs-blog/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-nextjs-blog-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/nextjs-claude/.github/workflows/deploy.yaml b/samples/nextjs-claude/.github/workflows/deploy.yaml index c3f39c56e..0adcfd352 100644 --- a/samples/nextjs-claude/.github/workflows/deploy.yaml +++ b/samples/nextjs-claude/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-nextjs-claude-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/nextjs-cv/.github/workflows/deploy.yaml b/samples/nextjs-cv/.github/workflows/deploy.yaml index e2b8cbae0..60cd3adc3 100644 --- a/samples/nextjs-cv/.github/workflows/deploy.yaml +++ b/samples/nextjs-cv/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-nextjs-cv-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/nextjs-documentation/.github/workflows/deploy.yaml b/samples/nextjs-documentation/.github/workflows/deploy.yaml index e2b8cbae0..bc0195378 100644 --- a/samples/nextjs-documentation/.github/workflows/deploy.yaml +++ b/samples/nextjs-documentation/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-nextjs-documentation-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/nextjs-postgres/.github/workflows/deploy.yaml b/samples/nextjs-postgres/.github/workflows/deploy.yaml index ce14c8f12..293b646e8 100644 --- a/samples/nextjs-postgres/.github/workflows/deploy.yaml +++ b/samples/nextjs-postgres/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-nextjs-postgres-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/nextjs-railpack/.github/workflows/deploy.yaml b/samples/nextjs-railpack/.github/workflows/deploy.yaml index e2b8cbae0..72fb9a645 100644 --- a/samples/nextjs-railpack/.github/workflows/deploy.yaml +++ b/samples/nextjs-railpack/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-nextjs-railpack-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/nextjs/.github/workflows/deploy.yaml b/samples/nextjs/.github/workflows/deploy.yaml index e2b8cbae0..a9163fab4 100644 --- a/samples/nextjs/.github/workflows/deploy.yaml +++ b/samples/nextjs/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-nextjs-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/nocodb/.github/workflows/deploy.yaml b/samples/nocodb/.github/workflows/deploy.yaml index 7667ebf73..4deb1a66d 100644 --- a/samples/nocodb/.github/workflows/deploy.yaml +++ b/samples/nocodb/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-nocodb-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/nodejs-chatroom/.github/workflows/deploy.yaml b/samples/nodejs-chatroom/.github/workflows/deploy.yaml index e2b8cbae0..a76c7710f 100644 --- a/samples/nodejs-chatroom/.github/workflows/deploy.yaml +++ b/samples/nodejs-chatroom/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-nodejs-chatroom-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/nodejs-express/.github/workflows/deploy.yaml b/samples/nodejs-express/.github/workflows/deploy.yaml index e2b8cbae0..41a7a775c 100644 --- a/samples/nodejs-express/.github/workflows/deploy.yaml +++ b/samples/nodejs-express/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-nodejs-express-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/nodejs-form/.github/workflows/deploy.yaml b/samples/nodejs-form/.github/workflows/deploy.yaml index e2b8cbae0..ef0387621 100644 --- a/samples/nodejs-form/.github/workflows/deploy.yaml +++ b/samples/nodejs-form/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-nodejs-form-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/nodejs-http/.github/workflows/deploy.yaml b/samples/nodejs-http/.github/workflows/deploy.yaml index e2b8cbae0..b2571f4ec 100644 --- a/samples/nodejs-http/.github/workflows/deploy.yaml +++ b/samples/nodejs-http/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-nodejs-http-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/nodejs-openai/.github/workflows/deploy.yaml b/samples/nodejs-openai/.github/workflows/deploy.yaml index e2b8cbae0..055677ec8 100644 --- a/samples/nodejs-openai/.github/workflows/deploy.yaml +++ b/samples/nodejs-openai/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-nodejs-openai-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/nodejs-react-postgres/.github/workflows/deploy.yaml b/samples/nodejs-react-postgres/.github/workflows/deploy.yaml index e2b8cbae0..173246a47 100644 --- a/samples/nodejs-react-postgres/.github/workflows/deploy.yaml +++ b/samples/nodejs-react-postgres/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-nodejs-react-postgres-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/nodejs-rest-api/.github/workflows/deploy.yaml b/samples/nodejs-rest-api/.github/workflows/deploy.yaml index e2b8cbae0..78d2b62fb 100644 --- a/samples/nodejs-rest-api/.github/workflows/deploy.yaml +++ b/samples/nodejs-rest-api/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-nodejs-rest-api-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/nodejs-s3/.github/workflows/deploy.yaml b/samples/nodejs-s3/.github/workflows/deploy.yaml index e2b8cbae0..562e4874d 100644 --- a/samples/nodejs-s3/.github/workflows/deploy.yaml +++ b/samples/nodejs-s3/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-nodejs-s3-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/nounly/.github/workflows/deploy.yaml b/samples/nounly/.github/workflows/deploy.yaml index 2aa3e647d..be9ad1a3b 100644 --- a/samples/nounly/.github/workflows/deploy.yaml +++ b/samples/nounly/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-nounly-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/ollama/.github/workflows/deploy.yaml b/samples/ollama/.github/workflows/deploy.yaml index e2b8cbae0..c01debdd6 100644 --- a/samples/ollama/.github/workflows/deploy.yaml +++ b/samples/ollama/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-ollama-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/phoenix-postgres/.github/workflows/deploy.yaml b/samples/phoenix-postgres/.github/workflows/deploy.yaml index e2b8cbae0..13cc53270 100644 --- a/samples/phoenix-postgres/.github/workflows/deploy.yaml +++ b/samples/phoenix-postgres/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-phoenix-postgres-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/platformatic/.github/workflows/deploy.yaml b/samples/platformatic/.github/workflows/deploy.yaml index e2b8cbae0..4918ab4cb 100644 --- a/samples/platformatic/.github/workflows/deploy.yaml +++ b/samples/platformatic/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-platformatic-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/python-form/.github/workflows/deploy.yaml b/samples/python-form/.github/workflows/deploy.yaml index e2b8cbae0..9836cca52 100644 --- a/samples/python-form/.github/workflows/deploy.yaml +++ b/samples/python-form/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-python-form-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/python-implicit-gpu/.github/workflows/deploy.yaml b/samples/python-implicit-gpu/.github/workflows/deploy.yaml index e2b8cbae0..14cad1a63 100644 --- a/samples/python-implicit-gpu/.github/workflows/deploy.yaml +++ b/samples/python-implicit-gpu/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-python-implicit-gpu-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/python-minimal/.github/workflows/deploy.yaml b/samples/python-minimal/.github/workflows/deploy.yaml index e2b8cbae0..2081d9e00 100644 --- a/samples/python-minimal/.github/workflows/deploy.yaml +++ b/samples/python-minimal/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-python-minimal-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/python-openai/.github/workflows/deploy.yaml b/samples/python-openai/.github/workflows/deploy.yaml index e2b8cbae0..9b27a99d2 100644 --- a/samples/python-openai/.github/workflows/deploy.yaml +++ b/samples/python-openai/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-python-openai-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/python-rest-api/.github/workflows/deploy.yaml b/samples/python-rest-api/.github/workflows/deploy.yaml index e2b8cbae0..d7c658b4f 100644 --- a/samples/python-rest-api/.github/workflows/deploy.yaml +++ b/samples/python-rest-api/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-python-rest-api-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/python-s3/.github/workflows/deploy.yaml b/samples/python-s3/.github/workflows/deploy.yaml index e2b8cbae0..46dc29244 100644 --- a/samples/python-s3/.github/workflows/deploy.yaml +++ b/samples/python-s3/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-python-s3-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/rails/.github/workflows/deploy.yaml b/samples/rails/.github/workflows/deploy.yaml index befb3298f..fee8802b8 100644 --- a/samples/rails/.github/workflows/deploy.yaml +++ b/samples/rails/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-rails-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/react-vite-railpack/.github/workflows/deploy.yaml b/samples/react-vite-railpack/.github/workflows/deploy.yaml index e2b8cbae0..61fa00408 100644 --- a/samples/react-vite-railpack/.github/workflows/deploy.yaml +++ b/samples/react-vite-railpack/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-react-vite-railpack-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/react/.github/workflows/deploy.yaml b/samples/react/.github/workflows/deploy.yaml index e2b8cbae0..8cfe42769 100644 --- a/samples/react/.github/workflows/deploy.yaml +++ b/samples/react/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-react-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/redis-js/.github/workflows/deploy.yaml b/samples/redis-js/.github/workflows/deploy.yaml index e2b8cbae0..3ee1e0336 100644 --- a/samples/redis-js/.github/workflows/deploy.yaml +++ b/samples/redis-js/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-redis-js-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/rocket/.github/workflows/deploy.yaml b/samples/rocket/.github/workflows/deploy.yaml index e2b8cbae0..643c45c3b 100644 --- a/samples/rocket/.github/workflows/deploy.yaml +++ b/samples/rocket/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-rocket-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/sailsjs-postgres/.github/workflows/deploy.yaml b/samples/sailsjs-postgres/.github/workflows/deploy.yaml index 64fc1e750..8a3c7660e 100644 --- a/samples/sailsjs-postgres/.github/workflows/deploy.yaml +++ b/samples/sailsjs-postgres/.github/workflows/deploy.yaml @@ -27,6 +27,9 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-sailsjs-postgres-${{ github.event.inputs.stack || 'default' }} steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/sailsjs/.github/workflows/deploy.yaml b/samples/sailsjs/.github/workflows/deploy.yaml index e2b8cbae0..31d3f59d8 100644 --- a/samples/sailsjs/.github/workflows/deploy.yaml +++ b/samples/sailsjs/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-sailsjs-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/svelte-mysql/.github/workflows/deploy.yaml b/samples/svelte-mysql/.github/workflows/deploy.yaml index e2b8cbae0..28fc5c2c0 100644 --- a/samples/svelte-mysql/.github/workflows/deploy.yaml +++ b/samples/svelte-mysql/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-svelte-mysql-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/sveltekit-mongodb/.github/workflows/deploy.yaml b/samples/sveltekit-mongodb/.github/workflows/deploy.yaml index e2b8cbae0..8efc4aed3 100644 --- a/samples/sveltekit-mongodb/.github/workflows/deploy.yaml +++ b/samples/sveltekit-mongodb/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-sveltekit-mongodb-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/sveltekit/.github/workflows/deploy.yaml b/samples/sveltekit/.github/workflows/deploy.yaml index e2b8cbae0..1ba1c6182 100644 --- a/samples/sveltekit/.github/workflows/deploy.yaml +++ b/samples/sveltekit/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-sveltekit-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/vllm/.github/workflows/deploy.yaml b/samples/vllm/.github/workflows/deploy.yaml index e2b8cbae0..62df00f3b 100644 --- a/samples/vllm/.github/workflows/deploy.yaml +++ b/samples/vllm/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-vllm-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/samples/vuejs/.github/workflows/deploy.yaml b/samples/vuejs/.github/workflows/deploy.yaml index e2b8cbae0..1f15b36ff 100644 --- a/samples/vuejs/.github/workflows/deploy.yaml +++ b/samples/vuejs/.github/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: contents: read id-token: write + concurrency: + cancel-in-progress: false + group: deploy-vuejs-${{ github.event.inputs.stack || 'default' }} + steps: - name: Checkout Repo uses: actions/checkout@v4