This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
Regenerate production tiles #426
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Regenerate production tiles | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 2 * * *' | |
jobs: | |
trigger_generation: | |
environment: | |
name: production | |
url: https://tiles.radverkehrsatlas.de | |
runs-on: ubuntu-latest | |
steps: | |
- name: Restart tile generation | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: ${{ secrets.SSH_USERNAME }} | |
password: ${{ secrets.SSH_PASSWORD }} | |
script: | | |
echo "Restart app container" | |
cd /srv/processing/ | |
echo "WAIT_FOR_FRESH_DATA=1" >> .env | |
docker compose down processing | |
docker compose up -d processing |