Skip to content

Commit

Permalink
Merge pull request #114 from nextstrain/auto-deploy-public-builds
Browse files Browse the repository at this point in the history
Auto deploy public builds
  • Loading branch information
joverlee521 committed Aug 9, 2023
2 parents 48a0ed2 + 373de2f commit 65df517
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/run-public-builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ jobs:
--cpus 36 \
--memory 72gib \
. \
all_public \
deploy_all \
-p \
--configfile profiles/nextstrain-public.yaml
4 changes: 4 additions & 0 deletions profiles/nextstrain-public.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
custom_rules:
- workflow/snakemake_rules/download_from_s3.smk
- profiles/nextstrain-public/rename.smk
- profiles/nextstrain-public/deploy.smk

# URL for auto-deploying builds
deploy_url: s3://nextstrain-data

fasta_fields:
- strain
Expand Down
13 changes: 13 additions & 0 deletions profiles/nextstrain-public/deploy.smk
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"""
This part of the workflow handles automatic deployments of public builds.
Depends on the `all_public` rule from rename.smk
"""

rule deploy_all:
input: rules.all_public.input
params:
s3_dst = config["deploy_url"]
shell:
"""
nextstrain remote upload {params.s3_dst} {input}
"""

0 comments on commit 65df517

Please sign in to comment.