-
Notifications
You must be signed in to change notification settings - Fork 27
87 lines (84 loc) · 2.75 KB
/
upload.yaml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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 }}