Skip to content

Commit

Permalink
adding missing env problems as secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
waelantar committed Oct 22, 2024
1 parent b5eb3b6 commit 661abc6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/pipeline-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,14 @@ jobs:

- name: Create environment file
run: |
echo "EMAIL_USER_NAME=${{ secrets.MAIL_USERNAME }}" >> .env
echo "EMAIL_PASSWORD=${{ secrets.MAIL_PASSWORD }}" >> .env
echo "MAIL_USERNAME=${{ secrets.MAIL_USERNAME }}" >> .env
echo "MAIL_PASSWORD=${{ secrets.MAIL_PASSWORD }}" >> .env
echo "DB_PASSWORD=${{ secrets.DB_PASSWORD }}" >> .env
echo "DB_USERNAME=${{ secrets.DB_USERNAME }}" >> .env
echo "TOKEN_EXPIRATION=${{ secrets.TOKEN_EXPIRATION }}" >> .env
echo "TOKEN_KEY=${{ secrets.TOKEN_KEY }}" >> .env
echo "DB_URL=${{ secrets.DB_URL }}" >> .env
echo "ACTIVE_PROFILE=${{ secrets.ACTIVE_PROFILE }}" >> .env
- name: Deploy with Docker Compose
run: |
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/pipeline-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ jobs:
- name: Create environment file
run: |
echo "VERSION=${{ env.VERSION }}" >> .env
echo "MAIL_USERNAME=${{ secrets.MAIL_USERNAME }}" >> .env
echo "MAIL_PASSWORD=${{ secrets.MAIL_PASSWORD }}" >> .env
echo "DB_PASSWORD=${{ secrets.DB_PASSWORD }}" >> .env
echo "DB_USERNAME=${{ secrets.DB_USERNAME }}" >> .env
echo "TOKEN_EXPIRATION=${{ secrets.TOKEN_EXPIRATION }}" >> .env
echo "TOKEN_KEY=${{ secrets.TOKEN_KEY }}" >> .env
echo "DB_URL=${{ secrets.DB_URL }}" >> .env
echo "ACTIVE_PROFILE=${{ secrets.ACTIVE_PROFILE }}" >> .env
- name: Deploy with Docker Compose
run: |
Expand Down

0 comments on commit 661abc6

Please sign in to comment.