From 519476da6f1218f8d1aca34cf55f04312cafeae3 Mon Sep 17 00:00:00 2001 From: Adrien Carpentier Date: Fri, 17 May 2024 16:41:43 +0900 Subject: [PATCH] test3 --- .github/workflows/build_and_deploy.yml | 11 +++++++++++ docker-compose.yml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index c2abe2b..de1f6dc 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -60,6 +60,16 @@ jobs: - name: Execute server commands for building and deploying 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 }} with: host: ${{ secrets.CI_DEPLOY_HOST }} username: ${{ secrets.CI_DEPLOY_USER }} @@ -74,3 +84,4 @@ jobs: docker compose down docker compose up --detach + rm -rf /home/${{ secrets.CI_DEPLOY_USER }}/${{ env.CI_JOB_ID }} diff --git a/docker-compose.yml b/docker-compose.yml index afcd7ee..51c5f20 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,7 +17,7 @@ services: - SESSION_PATH=/data/session.txt - GROUPS_USED=["basic", "albert"] - USER_ALLOWED_DOMAINS=${USER_ALLOWED_DOMAINS} - - SALT=${salt} + - SALT=${SALT} - ALBERT_API_URL=${ALBERT_API_URL} - ALBERT_API_TOKEN=${ALBERT_API_TOKEN} - ALBERT_API_MODEL_NAME=${ALBERT_API_MODEL_NAME}