-
Notifications
You must be signed in to change notification settings - Fork 13
70 lines (70 loc) · 2.13 KB
/
production-bcfishpass.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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-parameters:
runs-on: ubuntu-latest
environment: production
container: ghcr.io/smnorris/bcfishpass:main
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Run the jobs
run: |
cp parameters/example_newgraph/*csv parameters/
make --debug=basic .make/parameters
build-xings:
runs-on: ubuntu-latest
environment: production
container: ghcr.io/smnorris/bcfishpass:main
needs: load-parameters
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Build modelled crossings
run: jobs/bcfishpass01_modelled_stream_crossings
- name: Release modelled crossings
run: jobs/release_modelled_stream_crossings
prep:
runs-on: ubuntu-latest
environment: production
container: ghcr.io/smnorris/bcfishpass:main
needs: build-xings
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Run the jobs
run: jobs/bcfishpass02_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/bcfishpass03_model
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