-
Notifications
You must be signed in to change notification settings - Fork 20
50 lines (45 loc) · 1.52 KB
/
fetch-and-ingest-gisaid-branch.yml
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
name: GISAID fetch and ingest (on branch)
# Manually triggered using GitHub's UI
on: workflow_dispatch
jobs:
ingest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: nextstrain/.github/actions/setup-nextstrain-cli@master
- name: run_pipeline
run: |
./bin/write-envdir env.d \
AWS_DEFAULT_REGION \
GISAID_API_ENDPOINT \
GISAID_USERNAME_AND_PASSWORD \
GITHUB_RUN_ID \
GITHUB_BRANCH=${GITHUB_REF#refs/heads/}
declare -a config
config+=(
fetch_from_database=True
s3_dst=s3://nextstrain-ncov-private/branch/"${GITHUB_BRANCH}"
)
nextstrain build \
--aws-batch \
--detach \
--no-download \
--image nextstrain/ncov-ingest \
--cpus 16 \
--memory 68GiB \
--exec env \
. \
envdir env.d snakemake \
--configfile config/gisaid.yaml \
--config "${config[@]}" \
--cores 16 \
--resources mem_mb=68000 \
--printshellcmds
env:
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
GISAID_API_ENDPOINT: ${{ secrets.GISAID_API_ENDPOINT }}
GISAID_USERNAME_AND_PASSWORD: ${{ secrets.GISAID_USERNAME_AND_PASSWORD }}
GITHUB_RUN_ID: ${{ github.run_id }}
GITHUB_REF: ${{ github.ref }}