Skip to content

Commit

Permalink
ci/cd: secrets fix
Browse files Browse the repository at this point in the history
  • Loading branch information
estafons committed Oct 3, 2024
1 parent 5c33e06 commit 5731cbc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/templates/.env.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
APP_NAME="Crowdsourcing platform | Let's crowdsource our future"
APP_ENV=production
APP_KEY={{ APP_KEY }}
APP_KEY={{ LARAVEL_STAGING_SEC_DATA_APP_KEY }}
APP_DEBUG=true
DEBUGBAR_ENABLED=false
APP_LOG_LEVEL=debug
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ jobs:
template: .github/templates/.env.j2
output_file: .env
variables: |
DB_NAME=${{ secrets.DB_NAME }}
DB_USER=${{ secrets.DB_USER }}
DB_PASSWORD=${{ secrets.DB_PASSWORD }}
DB_NAME=${{ env.DB_NAME }}
DB_USER=${{ env.DB_USER }}
DB_PASSWORD=${{ env.DB_PASSWORD }}
LARAVEL_STAGING_SEC_DATA_APP_KEY=${{ secrets.LARAVEL_STAGING_SEC_DATA_APP_KEY }}

- name: Setup node
Expand Down Expand Up @@ -105,4 +106,5 @@ jobs:
script: |
source /home/${{ env.REMOTE_USER }}/.profile
cd /home/${{ env.REMOTE_USER }}/www/${{ env.PROJECT_URL }}
composer install --no-dev --no-interaction --no-progress --optimize-autoloader
composer install --no-interaction --no-progress --optimize-autoloader
# --no-dev

0 comments on commit 5731cbc

Please sign in to comment.