restart #1794
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: 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 |