add service to automatically create admin user #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
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.0.4 | |
with: | |
config-env-vars: DJANGO_SECRET_KEY POSTGRES_PASSWORD | |
env: | |
DJANGO_SECRET_KEY: ${{ secrets.DJANGO_SECRET_KEY }} | |
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} |