smnorris Run bcfishpass on prod #47
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: production-bcfishpass | |
run-name: ${{ github.actor }} Run bcfishpass on prod | |
on: | |
schedule: | |
- cron: '0 23 * * SAT' | |
workflow_dispatch: | |
env: | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} | |
jobs: | |
load-csv: | |
runs-on: ubuntu-latest | |
environment: production | |
container: ghcr.io/smnorris/bcfishpass:main | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Load csv data, parameters | |
run: | | |
cp parameters/example_newgraph/*csv parameters/ | |
jobs/load_csv | |
load-xings: | |
runs-on: ubuntu-latest | |
environment: production | |
container: ghcr.io/smnorris/bcfishpass:main | |
needs: load-csv | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Load modelled crossings from archive | |
run: jobs/load_modelled_stream_crossings | |
model-xings: | |
runs-on: ubuntu-latest | |
environment: production | |
container: ghcr.io/smnorris/bcfishpass:main | |
needs: load-xings | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Build modelled crossings | |
run: jobs/model_stream_crossings | |
prep: | |
runs-on: ubuntu-latest | |
environment: production | |
container: ghcr.io/smnorris/bcfishpass:main | |
needs: model-xings | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Run the jobs | |
run: jobs/model_prep | |
model: | |
runs-on: ubuntu-latest | |
environment: production | |
container: ghcr.io/smnorris/bcfishpass:main | |
needs: prep | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
with: | |
fetch-tags: true | |
fetch-depth: 0 | |
- name: Run the jobs | |
run: | | |
git config --global --add safe.directory /__w/bcfishpass/bcfishpass | |
jobs/model_run | |
release: | |
runs-on: ubuntu-latest | |
environment: production | |
container: ghcr.io/smnorris/bcfishpass:main | |
needs: model | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Run the jobs | |
run: jobs/release_freshwater_fish_habitat_accessibility_model |