File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 55 branches :
66 - main
77 - develop
8+ - feature/vapor-env-updates
89 workflow_dispatch :
910 inputs :
1011 environment :
7374 echo "🚀 Deploying to Vapor environment: ${{ env.VAPOR_ENV }}"
7475 echo "🧪 Test mode: ${{ env.TEST_MODE }}"
7576
77+ - name : Configure AWS Credentials
78+ if : env.TEST_MODE != 'true'
79+ uses : aws-actions/configure-aws-credentials@v4
80+ with :
81+ aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY }}
82+ aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
83+ aws-region : eu-west-1
84+
85+ - name : Download Encrypted Environment File from S3
86+ if : env.TEST_MODE != 'true'
87+ working-directory : ./backend
88+ run : |
89+ aws s3 cp s3://hi.events-env-secrets/.env.${{ env.VAPOR_ENV }}.encrypted .env.${{ env.VAPOR_ENV }}.encrypted
90+ echo "✅ Downloaded .env.${{ env.VAPOR_ENV }}.encrypted from S3"
91+
7692 - name : Validate Deployment Configuration
7793 working-directory : ./backend
7894 run : |
8399 fi
84100
85101 - name : Deploy to Vapor
102+ if : env.TEST_MODE != 'true'
86103 working-directory : ./backend
87104 run : vapor deploy ${{ env.VAPOR_ENV }}
88105 env :
Original file line number Diff line number Diff line change 77/vendor
88.env
99.env.backup
10+ .env.production. *
11+ .env.staging. *
1012.env.production
1113.env.staging
1214.phpunit.result.cache
You can’t perform that action at this time.
0 commit comments