Skip to content

Commit

Permalink
Merge pull request #23 from Kosjenka-Reading-App/update-prod-yml
Browse files Browse the repository at this point in the history
Update prod.yml
  • Loading branch information
DoStini authored Nov 21, 2023
2 parents 7786c25 + 8c194d3 commit dfa8008
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
PASSWORD_RESET_LINK: "127.0.0.1"
JWT_VALID_TIME_ACCESS: 1200
JWT_VALID_TIME_REFRESH: 604800
JWT_VALID_TIME_PWD_RESET: 600
JWT_ALGORITHM: "HS256"
MAIL_USERNAME: "[email protected]"
MAIL_PORT: 587
MAIL_SERVER: "smtp.gmail.com"
MAIL_FROM_NAME: "Kosjenka Support"

jobs:
deploy:
Expand All @@ -35,7 +44,10 @@ jobs:
images: ghcr.io/dostini/api

- name: Crate env file with secrets
run: echo "DATABASE_URL=${{ secrets.PROD_DATABASE_URL }}" >> .env
run: |
echo "DATABASE_URL=${{ secrets.PROD_DATABASE_URL }}" >> .env
echo "JWT_SECRET=${{ secrets.DEV_JWT_SECRET }}" >> .env
echo "MAIL_PASSWORD=${{ secrets.MAIL_PASSWORD }}" >> .env
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
Expand Down

0 comments on commit dfa8008

Please sign in to comment.