Skip to content

Commit

Permalink
ci: set environment variables properly
Browse files Browse the repository at this point in the history
  • Loading branch information
themantre committed Dec 27, 2024
1 parent 59652e6 commit 6f2493d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ jobs:
username: ${{ secrets.SSH_USERNAME }}
port: ${{ secrets.SSH_PORT }}
key: ${{ secrets.SSH_KEY }}
envs: PAGU_DB_ROOT_PASSWORD,PAGU_DB_USER,PAGU_DB_USER_PASSWORD,PHPMYADMIN_PORT
script: |
cd source
git pull
export PAGU_DB_ROOT_PASSWORD=${{ secrets.PAGU_DB_ROOT_PASSWORD }}
export PAGU_DB_USER=${{ secrets.PAGU_DB_USER }}
export PAGU_DB_USER_PASSWORD=${{ secrets.PAGU_DB_USER_PASSWORD }}
export PHPMYADMIN_PORT=${{ secrets.PHPMYADMIN_PORT }}
bash ./deployment/deploy.sh
env:
PAGU_DB_ROOT_PASSWORD: ${{ secrets.PAGU_DB_ROOT_PASSWORD }}
PAGU_DB_USER: ${{ secrets.PAGU_DB_USER }}
PAGU_DB_USER_PASSWORD: ${{ secrets.PAGU_DB_USER_PASSWORD }}
PHPMYADMIN_PORT: ${{ secrets.PHPMYADMIN_PORT }}

0 comments on commit 6f2493d

Please sign in to comment.