Skip to content

Commit

Permalink
ci: sync scripts on deploy (#207)
Browse files Browse the repository at this point in the history
Run sync-scripts on deploy to update scripts as defined in config.
  • Loading branch information
alexgarel authored Jul 4, 2024
1 parent 482acf8 commit 0066549
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/container-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0066549

Please sign in to comment.