Skip to content

Upload data from fauna to S3 #133

Upload data from fauna to S3

Upload data from fauna to S3 #133

Workflow file for this run

name: Upload data from fauna to S3
# Only support manual trigger of this workflow.
on:
workflow_dispatch:
inputs:
triggerPublic:
description: "Trigger Nextstrain public builds"
required: true
type: boolean
publicDockerImage:
description: "Specific container image to use for Nextstrain public builds"
required: false
type: string
triggerPrivateNextflu:
description: "Trigger private Nextflu builds"
required: true
type: boolean
privateNextfluDockerImage:
description: "Specific container image to use for private Nextflu builds"
required: false
type: string
triggerNextfluPrivate:
description: "Trigger nextflu-private group builds"
required: true
type: boolean
nextfluPrivateDockerImage:
description: "Specific container image to use for nextflu-private group builds"
required: false
type: string
triggerNextclade:
description: "Trigger run-nextclade workflow"
required: true
type: boolean
nextcladeDockerImage:
description: "Specific container image to use for the Nextclade workflow"
required: false
type: string
jobs:
upload:
permissions:
id-token: write
uses: nextstrain/.github/.github/workflows/pathogen-repo-build.yaml@master
secrets: inherit
with:
runtime: docker
run: |
nextstrain build \
--env RETHINK_AUTH_KEY \
--env RETHINK_HOST \
. \
-j 4 \
upload_all_titers \
upload_all_raw_sequences \
upload_all_sequences \
upload_all_metadata \
--configfile profiles/upload.yaml
trigger:
needs: [upload]
strategy:
matrix:
include:
- trigger: ${{ inputs.triggerPublic }}
workflow: run-public-builds.yaml
image: ${{ inputs.publicDockerImage }}
- trigger: ${{ inputs.triggerPrivateNextflu }}
workflow: run-private-nextflu-builds.yaml
image: ${{ inputs.privateNextfluDockerImage }}
- trigger: ${{ inputs.triggerNextfluPrivate }}
workflow: run-nextflu-private-builds.yaml
image: ${{ inputs.nextfluPrivateDockerImage }}
- trigger: ${{ inputs.triggerNextclade }}
workflow: run-nextclade.yaml
image: ${{ inputs.nextcladeDockerImage }}
runs-on: ubuntu-latest
steps:
- if: ${{ matrix.trigger }}
name: Trigger ${{ matrix.workflow }}
run: |
gh workflow run \
${{ matrix.workflow }} \
--repo nextstrain/seasonal-flu \
-f dockerImage=${{ matrix.image }}
env:
GITHUB_TOKEN: ${{ github.token }}