Skip to content

Commit 98d9f5e

Browse files
committed
fix: environment variables of docker compose in CD
1 parent 47e8ab3 commit 98d9f5e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/deployment.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ jobs:
2222
ssh_key: ${{ secrets.CODINGLABGG_SSH_KEY }}
2323
ssh_cert: ${{ secrets.CODINGLABGG_SSH_CERT }}
2424

25-
- name: 'Github actions secrets to env'
26-
run: |
27-
echo "MYSQL_PASSWORD=${{ secrets.MYSQL_PASSWORD }}" >> $GITHUB_ENV
28-
echo "MYSQL_ROOT_PASSWORD=${{ secrets.MYSQL_ROOT_PASSWORD }}" >> $GITHUB_ENV
29-
3025
- name: 'Docker compose up on the production server'
3126
working-directory: ./packages/pterodactyl
3227
run: docker --context prod-server compose up -d
28+
env:
29+
MYSQL_PASSWORD: ${{ secrets.MYSQL_PASSWORD }}
30+
MYSQL_ROOT_PASSWORD: ${{ secrets.MYSQL_ROOT_PASSWORD }}

0 commit comments

Comments
 (0)