Skip to content

Commit cb9d9ee

Browse files
committed
splitting dependencies
1 parent 5634513 commit cb9d9ee

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/lambda_deploy.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,30 @@ jobs:
134134
python -m pip install --upgrade pip
135135
pip install -r requirements/common.txt -r requirements/prod.txt
136136
137+
138+
- name: Create AWS Profile
139+
env:
140+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
141+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
142+
AWS_REGION: ${{ secrets.AWS_REGION }}
143+
run: |
144+
mkdir -p ~/.aws
145+
echo "[default]" > ~/.aws/credentials
146+
echo "aws_access_key_id=${AWS_ACCESS_KEY_ID}" >> ~/.aws/credentials
147+
echo "aws_secret_access_key=${AWS_SECRET_ACCESS_KEY}" >> ~/.aws/credentials
148+
echo "[default]" > ~/.aws/config
149+
echo "region=${AWS_REGION}" >> ~/.aws/config
150+
137151
- name: Collect static files
138152
run: |
139153
python manage.py collectstatic --noinput
154+
env:
155+
DEBUG: 'False'
156+
SECRET_KEY: 'SomethingSecret'
157+
DB_NAME: 'visuleo_db'
158+
DB_USER: 'postgres'
159+
DB_HOST: 'localhost'
160+
DB_PASSWORD: 'postgres_password'
140161

141162

142163
security-check:

0 commit comments

Comments
 (0)