Skip to content

Commit acba971

Browse files
committed
Feature: Deployment updates
1 parent f022412 commit acba971

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- main
77
- develop
8+
- feature/vapor-env-updates
89
workflow_dispatch:
910
inputs:
1011
environment:
@@ -73,6 +74,21 @@ jobs:
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: |
@@ -83,6 +99,7 @@ jobs:
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:

backend/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
/vendor
88
.env
99
.env.backup
10+
.env.production.*
11+
.env.staging.*
1012
.env.production
1113
.env.staging
1214
.phpunit.result.cache

0 commit comments

Comments
 (0)