Load encrypted env file on deployment

This commit is contained in:
Julien Nahum 2024-06-05 15:19:59 +02:00
parent af256bfccc
commit c70c0df464
3 changed files with 713 additions and 430 deletions

View File

@ -243,6 +243,10 @@ jobs:
URL="${{ secrets.AMPLIFY_DEPLOY_URL }}"
curl -X POST -d {} "$URL" -H "Content-Type: application/json"
- name: Created encrypted .env file before deployment
run: |
echo "${{ secrets.ENCRYPTED_ENV_FILE }}" >> .env.production.encrypted
- name: Deploy back-end to production
run: php vendor/bin/vapor deploy api-production --commit="${GITHUB_SHA}" --message="${GITHUB_REF}"
env:

1
.gitignore vendored
View File

@ -10,6 +10,7 @@
.env.backup
.env.testing
.env.dusk.local
.env.api-*
.phpunit.result.cache
.idea/*
Homestead.json

1138
composer.lock generated

File diff suppressed because it is too large Load Diff