Skip to content

Commit d58189c

Browse files
committed
Fix bug with secrets and env variables
1 parent 4e6b94a commit d58189c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,13 @@ jobs:
7070
cd ~/vectorapp/vector-portfolio/
7171
7272
mkdir -p .secrets
73-
echo "${{ secrets.payload-secret }}" > .secrets/payload-secret.txt
74-
echo "${{ secrets.postgres-password }}" > .secrets/postgres-password.txt
75-
echo "${{ secrets.email-password }}" > .secrets/email-password.txt
73+
cd .secrets
74+
touch payload-secret.txt
75+
touch postgres-password.txt
76+
touch email-password.txt
77+
echo '${{ secrets.payload_secret }}' > payload-secret.txt
78+
echo '${{ secrets.postgres_password }}' > postgres-password.txt
79+
echo '${{ secrets.email_password }}' > email-password.txt
7680
"
7781
- name: Build and push changes
7882
run: |
@@ -95,6 +99,7 @@ jobs:
9599
96100
export DOMAIN="${{ env.DOMAIN }}"
97101
export EMAIL_USER="${{ env.EMAIL_USER }}"
102+
export SMTP_HOST="${{env.SMTP_HOST}}"
98103
docker compose up -d --no-build
99104
docker image prune -f
100105
"

0 commit comments

Comments
 (0)