-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (39 loc) · 1.21 KB
/
stage.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
name: stage
run-name: stage ${{inputs.resource_id}}
on:
workflow_dispatch:
inputs:
resource_id:
description: "Bioimage.io resource identifier"
required: true
type: string
package_url:
description: "Download URL of the resource package zip-file"
required: true
type: string
sandbox:
description: Flag to stage to sandbox instead
required: false
default: false
type: boolean
concurrency: ${{inputs.resource_id}}
jobs:
stage:
uses: bioimage-io/collection/.github/workflows/stage_call.yaml@main
with:
resource_id: ${{inputs.resource_id}}
package_url: ${{inputs.package_url}}
S3_HOST: ${{vars.S3_HOST}}
S3_BUCKET: ${{vars.S3_BUCKET}}
S3_FOLDER: ${{inputs.sandbox && vars.S3_SANDBOX_FOLDER || vars.S3_FOLDER}}
secrets: inherit
test:
needs: stage
uses: bioimage-io/collection/.github/workflows/test_call.yaml@main
with:
resource_id: ${{inputs.resource_id}}
version: ${{needs.stage.outputs.version}}
S3_HOST: ${{vars.S3_HOST}}
S3_BUCKET: ${{vars.S3_BUCKET}}
S3_FOLDER: ${{inputs.sandbox && vars.S3_SANDBOX_FOLDER || vars.S3_FOLDER}}
secrets: inherit