Update Daily Data #304
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: 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 |