Merge pull request 'behruz' (#102) from behruz into main
Some checks failed
Deploy to Production / build-and-deploy (push) Failing after 2m6s
Some checks failed
Deploy to Production / build-and-deploy (push) Failing after 2m6s
Reviewed-on: #102
This commit is contained in:
25
.github/workflows/deploy.yaml
vendored
25
.github/workflows/deploy.yaml
vendored
@@ -132,18 +132,17 @@ jobs:
|
||||
git fetch origin main
|
||||
git reset --hard origin/main
|
||||
|
||||
cat > .env << 'ENVEOF'
|
||||
DB_HOST=postgres
|
||||
DB_NAME=sifatbahodb
|
||||
DB_PORT=5432
|
||||
DB_USER=${{ secrets.DB_USER }}
|
||||
DB_PASSWORD=${{ secrets.DB_PASSWORD }}
|
||||
REDIS_URL=redis://redis:6379
|
||||
SECRET_KEY=${{ secrets.SECRET_KEY }}
|
||||
DIDOX_TOKEN=${{ secrets.DIDOX_TOKEN }}
|
||||
DEBUG=False
|
||||
PORT=8085
|
||||
|
||||
ENVEOF
|
||||
printf '%s\n' \
|
||||
'DB_HOST=postgres' \
|
||||
'DB_NAME=sifatbahodb' \
|
||||
'DB_PORT=5432' \
|
||||
'DB_USER=${{ secrets.DB_USER }}' \
|
||||
'DB_PASSWORD=${{ secrets.DB_PASSWORD }}' \
|
||||
'REDIS_URL=redis://redis:6379' \
|
||||
'SECRET_KEY=${{ secrets.SECRET_KEY }}' \
|
||||
'DIDOX_TOKEN=${{ secrets.DIDOX_TOKEN }}' \
|
||||
'DEBUG=False' \
|
||||
'PORT=8085' \
|
||||
> .env
|
||||
|
||||
docker stack deploy -c stack.yaml ${{ env.PROJECT_NAME }} --with-registry-auth
|
||||
|
||||
Reference in New Issue
Block a user