Skip to content

Commit

Permalink
ci: pass env vars to SSH-action context
Browse files Browse the repository at this point in the history
  • Loading branch information
bolinocroustibat committed May 17, 2024
1 parent b70fb3d commit d843dbc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ jobs:

- name: Execute server commands for deploy
uses: appleboy/ssh-action@master
env:
MATRIX_HOME_SERVER: ${{ secrets.MATRIX_HOME_SERVER }}
MATRIX_BOT_USERNAME: ${{ secrets.MATRIX_BOT_USERNAME }}
MATRIX_BOT_PASSWORD: ${{ secrets.MATRIX_BOT_PASSWORD }}
ERRORS_ROOM_ID: ${{ secrets.ERRORS_ROOM_ID }}
USER_ALLOWED_DOMAINS: ${{ secrets.USER_ALLOWED_DOMAINS }}
SALT: ${{ secrets.SALT }}
ALBERT_API_URL: ${{ secrets.ALBERT_API_URL }}
ALBERT_API_TOKEN: ${{ secrets.ALBERT_API_TOKEN }}
ALBERT_API_MODEL_NAME: ${{ secrets.ALBERT_API_MODEL_NAME }}
ALBERT_API_MODE: ${{ secrets.ALBERT_API_MODE }}
with:
host: ${{ secrets.CI_DEPLOY_HOST }}
username: ${{ secrets.CI_DEPLOY_USER }}
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ jobs:

- name: Execute server commands for deploy
uses: appleboy/ssh-action@master
env:
MATRIX_HOME_SERVER: ${{ secrets.MATRIX_HOME_SERVER }}
MATRIX_BOT_USERNAME: ${{ secrets.MATRIX_BOT_USERNAME }}
MATRIX_BOT_PASSWORD: ${{ secrets.MATRIX_BOT_PASSWORD }}
ERRORS_ROOM_ID: ${{ secrets.ERRORS_ROOM_ID }}
USER_ALLOWED_DOMAINS: ${{ secrets.USER_ALLOWED_DOMAINS }}
SALT: ${{ secrets.SALT }}
ALBERT_API_URL: ${{ secrets.ALBERT_API_URL }}
ALBERT_API_TOKEN: ${{ secrets.ALBERT_API_TOKEN }}
ALBERT_API_MODEL_NAME: ${{ secrets.ALBERT_API_MODEL_NAME }}
ALBERT_API_MODE: ${{ secrets.ALBERT_API_MODE }}
with:
host: ${{ secrets.CI_DEPLOY_HOST }}
username: ${{ secrets.CI_DEPLOY_USER }}
Expand Down

0 comments on commit d843dbc

Please sign in to comment.