diff --git a/.github/workflows/container-deploy.yml b/.github/workflows/container-deploy.yml index e880ca8d..5ce642b1 100644 --- a/.github/workflows/container-deploy.yml +++ b/.github/workflows/container-deploy.yml @@ -167,6 +167,20 @@ jobs: cd ${{ matrix.env }} make create_external_volumes + - name: Sync scripts + uses: appleboy/ssh-action@master + with: + host: ${{ env.SSH_HOST }} + username: ${{ env.SSH_USERNAME }} + key: ${{ secrets.SSH_PRIVATE_KEY }} + proxy_host: ${{ env.SSH_PROXY_HOST }} + proxy_username: ${{ env.SSH_USERNAME }} + proxy_key: ${{ secrets.SSH_PRIVATE_KEY }} + script_stop: false + script: | + cd ${{ matrix.env }} + make sync-scripts + - name: Start services uses: appleboy/ssh-action@master with: diff --git a/Makefile b/Makefile index 9762cba4..aabd74fe 100644 --- a/Makefile +++ b/Makefile @@ -146,6 +146,10 @@ import-taxonomies: @echo "🔎 Importing taxonomies …" ${DOCKER_COMPOSE} run --rm api python3 -m app import-taxonomies ${args} +sync-scripts: + @echo "🔎 Syncing scripts …" + ${DOCKER_COMPOSE} run --rm api python3 -m app sync-scripts + build-translations: @echo "🔎 Building translations …" ${DOCKER_COMPOSE} run --rm search_nodejs npm run translations:build