Skip to content

restart

restart #1794

Workflow file for this run

name: restart
on:
schedule:
- cron: '5 */12 * * *'
workflow_dispatch:
jobs:
restart:
runs-on: ubuntu-latest
steps:
- name: Check out the project
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Extract Docker authentication
run: |
mkdir .docker
echo "${{ secrets.DOCKER_KEY }}" >> .docker/key.pem
echo "${{ secrets.DOCKER_CERT }}" >> .docker/cert.pem
echo "${{ secrets.DOCKER_CA }}" >> .docker/ca.pem
# - name: Restart the processes (x64)
# run: docker compose -p vgmdbapi restart vgmdb_web && docker compose -p vgmdbapi restart vgmdb_celery
# env:
# DOCKER_CERT_PATH: .docker
# DOCKER_HOST: "${{ secrets.DOCKER_HOST }}"
# DOCKER_TLS_VERIFY: 1
- name: Restart the processes (arm)
run: docker compose -p vgmdbapi restart vgmdb_web && docker compose -p vgmdbapi restart vgmdb_celery
env:
DOCKER_CERT_PATH: .docker
DOCKER_HOST: "${{ secrets.DOCKER_HOST_2 }}"
DOCKER_TLS_VERIFY: 1