prepared playbook for prod

This commit is contained in:
Yannic Kilcher
2023-01-15 23:30:16 +01:00
parent cc03376d86
commit 5d441b1570
9 changed files with 69 additions and 44 deletions
+8 -2
View File
@@ -35,9 +35,9 @@ jobs:
context: .
dockerfile: docker/Dockerfile.discord-bot
build-args: ""
deploy-dev:
deploy-to-node:
needs: [build-backend, build-web, build-bot]
uses: ./.github/workflows/deploy-dev.yaml
uses: ./.github/workflows/deploy-to-node.yaml
secrets: inherit
with:
stack-name: ${{ github.event_name == 'release' && 'staging' || 'dev' }}
@@ -46,3 +46,9 @@ jobs:
'latest' }}
backend-port: ${{ github.event_name == 'release' && '8180' || '8080' }}
website-port: ${{ github.event_name == 'release' && '3100' || '3000' }}
postgres-password:
${{ github.event_name == 'release' && secrets.STAGING_POSTGRES_PASSWORD
|| 'postgres' }}
web-api-key:
${{ github.event_name == 'release' && secrets.STAGING_WEB_API_KEY ||
'1234' }}