Skip to content

Commit

Permalink
Merge pull request #826 from hackforla/daily-update-2
Browse files Browse the repository at this point in the history
swapped in prefect script for daily update
  • Loading branch information
mattyweb authored Oct 27, 2020
2 parents 9648294 + 48616fd commit 973cbc4
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/Daily_Backend_Update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,38 @@ on:
- cron: '0 7 * * *'

jobs:
# dev_update:
# runs-on: ubuntu-latest
# steps:
# - name: run update script on AWS dev
# uses: appleboy/ssh-action@master
# with:
# username: ec2-user
# host: ${{ secrets.AWS_SSH_HOST_DEV }}
# key: ${{ secrets.AWS_SSH_PEM_KEY }}
# command_timeout: 60m
# script: |
# set -e
# cd 311-data/server
# docker-compose run --rm api python bin/db_update.py

dev_update:
runs-on: ubuntu-latest
steps:
- name: run update script on AWS dev
uses: appleboy/ssh-action@master
env:
PREFECT__CONTEXT__SECRETS__SLACK_HOOK: ${{ secrets.SLACK_HOOK_DEV }}
with:
username: ec2-user
host: ${{ secrets.AWS_SSH_HOST_DEV }}
key: ${{ secrets.AWS_SSH_PEM_KEY }}
command_timeout: 60m
envs: PREFECT__CONTEXT__SECRETS__SLACK_HOOK
script: |
set -e
cd 311-data/server
# docker-compose run --rm api python bin/db_update.py
docker-compose run --rm prefect python flow.py
docker-compose run -e PREFECT__CONTEXT__SECRETS__SLACK_HOOK prefect python flow.py
prod_update:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 973cbc4

Please sign in to comment.