Skip to content

Update Daily Data

Update Daily Data #284

name: Update Daily Data
on:
workflow_dispatch:
schedule:
- cron: '0 7 * * *' # schedule the job to run once a day on 7am UTC or 1am central
jobs:
update-daily-data:
environment: Couillard
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Pull Docker Image
run: docker compose pull
- name: Create Secrets File
run: |
echo '${{ secrets.FIREBASE_CREDS }}' > cred.json
- name: Run Docker Image
run: docker compose up