Skip to content

Commit

Permalink
chore: setup deploy workflow environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
swusjask committed Jun 13, 2024
1 parent ac89f06 commit d66a76b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/deploy-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@ jobs:
POSTGRES_DB: ${{secrets.POSTGRES_DB}}
CERTBOT_EMAIL: ${{secrets.CERTBOT_EMAIL}}
CERTBOT_DOMAIN: ${{secrets.CERTBOT_DOMAIN}}
GS_CREDENTIALS: ${{secrets.GS_CREDENTIALS}}
GS_PROJECT_ID: ${{secrets.GS_PROJECT_ID}}
GS_BUCKET_NAME: ${{secrets.GS_BUCKET_NAME}}
with:
host: ${{secrets.SSH_HOST}}
username: ${{secrets.SSH_USERNAME}}
key: ${{secrets.SSH_KEY}}
port: 22
envs: SECRET_KEY,SQL_ENGINE,SQL_DATABASE,SQL_USER,SQL_PASSWORD,SQL_HOST,SQL_PORT,DATABASE,POSTGRES_USER,POSTGRES_PASSWORD,POSTGRES_DB,CERTBOT_EMAIL,CERTBOT_DOMAIN
envs: SECRET_KEY,SQL_ENGINE,SQL_DATABASE,SQL_USER,SQL_PASSWORD,SQL_HOST,SQL_PORT,DATABASE,POSTGRES_USER,POSTGRES_PASSWORD,POSTGRES_DB,CERTBOT_EMAIL,CERTBOT_DOMAIN,GS_CREDENTIALS,GS_PROJECT_ID,GS_BUCKET_NAME
script: |
export SECRET_KEY=$SECRET_KEY
export SQL_ENGINE=$SQL_ENGINE
Expand All @@ -49,6 +52,9 @@ jobs:
export POSTGRES_DB=$POSTGRES_DB
export CERTBOT_EMAIL=$CERTBOT_EMAIL
export CERTBOT_DOMAIN=$CERTBOT_DOMAIN
export GS_CREDENTIALS=$GS_CREDENTIALS
export GS_PROJECT_ID=$GS_PROJECT_ID
export GS_BUCKET_NAME=$GS_BUCKET_NAME
cd ~/CeTour
git pull origin main
Expand Down

0 comments on commit d66a76b

Please sign in to comment.