Skip to content

Commit eba2535

Browse files
committed
chore: update devcontainer, deploy config and docs for Django Redis Postgres sample
1 parent b9685fa commit eba2535

File tree

3 files changed

+5
-18
lines changed

3 files changed

+5
-18
lines changed
Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1 @@
1-
# Note: universal image is not compatible with the devcontainer tools.
2-
# we use the typescript-node image instead here but should switch out per
3-
# project requirements. You can choose a devcontainer that's appropriate
4-
# for your sample from the list below #REMOVE_ME_AFTER_EDITING
5-
6-
# FROM mcr.microsoft.com/devcontainers/go:1.22-bookworm
7-
# FROM mcr.microsoft.com/devcontainers/python:3.12-bookworm
8-
# FROM mcr.microsoft.com/devcontainers/php:8.3-bookworm
9-
# FROM mcr.microsoft.com/devcontainers/ruby:3.2-bookworm
10-
# FROM mcr.microsoft.com/devcontainers/java:11-bookworm
11-
# FROM mcr.microsoft.com/devcontainers/rust:1-bookworm
12-
FROM mcr.microsoft.com/devcontainers/typescript-node:22-bookworm
1+
FROM mcr.microsoft.com/devcontainers/python:3.12-bookworm

samples/crew-django-redis-postgres/.github/workflows/deploy.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ jobs:
1919

2020
- name: Deploy
2121
uses: DefangLabs/[email protected]
22-
#REMOVE_ME_AFTER_EDITING - Replace the following line with the list of environment variables you want to pass to the action
23-
# or remove the lines if you don't need to pass any environment variables/secrets to the action
2422
with:
25-
config-env-vars: ENV1 ENV2
23+
config-env-vars: DJANGO_SECRET_KEY POSTGRES_PASSWORD SSL_MODE
2624
env:
27-
ENV1: ${{ secrets.ENV1 }}
28-
ENV2: ${{ secrets.ENV2 }}
25+
DJANGO_SECRET_KEY: ${{ secrets.DJANGO_SECRET_KEY }}
26+
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
27+
SSL_MODE: ${{ secrets.SSL_MODE }}

samples/crew-django-redis-postgres/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ docker compose -f ./compose.local.yaml up --build
1919
```
2020

2121
## Configuration
22-
#REMOVE_ME_AFTER_EDITING - this section should be removed if there are no configuration values needed. The intro text can probably stay, but the list of configuration values should be updated/removed if there are none.
2322

2423
For this sample, you will need to provide the following [configuration](https://docs.defang.io/docs/concepts/configuration):
2524

0 commit comments

Comments
 (0)