-
Notifications
You must be signed in to change notification settings - Fork 26
72 lines (68 loc) · 2.09 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
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
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 AWS_ACCESS_KEY_ID \
--env AWS_SECRET_ACCESS_KEY \
--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-public-builds:
needs: [upload]
if: ${{ inputs.triggerPublic }}
runs-on: ubuntu-latest
steps:
- name: Trigger Nextstrain public builds
run: |
gh workflow run \
run-public-builds.yaml \
--repo nextstrain/seasonal-flu \
-f dockerImage=${{ github.event.inputs.publicDockerImage }}
env:
GITHUB_TOKEN: ${{ github.token }}
trigger-private-nextflu-builds:
needs: [upload]
if: ${{ inputs.triggerPrivateNextflu }}
runs-on: ubuntu-latest
steps:
- name: Trigger private Nextflu builds
run: |
gh workflow run \
run-private-nextflu-builds.yaml \
--repo nextstrain/seasonal-flu \
-f dockerImage=${{ github.event.inputs.privateNextfluDockerImage }}
env:
GITHUB_TOKEN: ${{ github.token }}