From 6f2493df4ab6266fd6c684cff5ae8907f6ea7fe8 Mon Sep 17 00:00:00 2001 From: mantre Date: Sat, 28 Dec 2024 04:00:21 +0800 Subject: [PATCH] ci: set environment variables properly --- .github/workflows/deploy.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 91221677..38e1cd48 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 }}