Skip to content

Commit

Permalink
.github/workflows: Add workflows for weekly flu builds
Browse files Browse the repository at this point in the history
This adds GH Action workflows for both the Nextstrain public builds
and the private Nextflu builds.

The `nextstrain build` commands are copied from the example commands in
#76
  • Loading branch information
joverlee521 committed Apr 28, 2023
1 parent d2191af commit 062594d
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/run-private-nextflu-builds.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run the private Nextflu builds

on: workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: nextstrain/.github/actions/setup-nextstrain-cli@master
- name: Launch build on AWS Batch
run: |
set -x
nextstrain build \
--aws-batch \
--detach \
--cpus 36 \
--memory 72gib \
. \
all_who \
-p \
--configfile profiles/private.nextflu.org.yaml
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
26 changes: 26 additions & 0 deletions .github/workflows/run-public-builds.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run the Nextstrain public builds

on: workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: nextstrain/.github/actions/setup-nextstrain-cli@master
- name: Launch build on AWS Batch
run: |
set -x
nextstrain build \
--aws-batch \
--detach \
--cpus 36 \
--memory 72gib \
. \
all_public \
-p \
--configfile profiles/nextstrain-public.yaml
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 comments on commit 062594d

Please sign in to comment.