-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
phylo: Add build-config/nextstrain-automation
Add config and rules for Nextstrain automation to deploy the measles dataset Followed commit from zika: nextstrain/zika@d7838ad As duplicating nextstrain/zika#51
- Loading branch information
1 parent
7d99965
commit b3eb84e
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
custom_rules: | ||
- build-configs/nextstrain-automation/deploy.smk | ||
|
||
deploy_url: "s3://nextstrain-data" |
15 changes: 15 additions & 0 deletions
15
phylogenetic/build-configs/nextstrain-automation/deploy.smk
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
""" | ||
This part of the workflow handles automatic deployments of the measles build. | ||
Uploads the build defined as the default output of the workflow through | ||
the `all` rule from Snakefille | ||
""" | ||
|
||
rule deploy_all: | ||
input: *rules.all.input | ||
output: touch("results/deploy_all.done") | ||
params: | ||
deploy_url = config["deploy_url"] | ||
shell: | ||
""" | ||
nextstrain remote upload {params.deploy_url} {input} | ||
""" |