File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 8
8
workflow_dispatch :
9
9
10
10
jobs :
11
+ # Try to build the Ersilia Pack
11
12
upload-ersilia-pack :
12
- if : ${{ github.event.workflow_run.conclusion == 'success' }}
13
13
uses : ersilia-os/ersilia-model-workflows/.github/workflows/upload-ersilia-pack.yml@main
14
14
with :
15
15
repo_name : ${{ github.event.repository.name }}
16
16
secrets :
17
17
DOCKERHUB_USERNAME : ${{ secrets.DOCKERHUB_USERNAME }}
18
18
DOCKERHUB_PASSWORD : ${{ secrets.DOCKERHUB_PASSWORD }}
19
19
20
- # BentoML Multistage Build (runs if Ersilia Pack fails)
20
+ # Fallback to BentoML multistage build if Ersilia Pack fails
21
21
upload-bentoml-multistage :
22
22
needs : upload-ersilia-pack
23
- if : ${{ needs.upload-ersilia-pack.result != 'success ' }}
23
+ if : ${{ needs.upload-ersilia-pack.result == 'failure ' }}
24
24
uses : ersilia-os/ersilia-model-workflows/.github/workflows/upload-bentoml.yml@main
25
25
with :
26
26
repo_name : ${{ github.event.repository.name }}
29
29
DOCKERHUB_USERNAME : ${{ secrets.DOCKERHUB_USERNAME }}
30
30
DOCKERHUB_PASSWORD : ${{ secrets.DOCKERHUB_PASSWORD }}
31
31
32
- # BentoML Legacy Build (runs only if both previous jobs fail)
32
+ # Final fallback to legacy build if both pack and multistage fail
33
33
upload-bentoml-legacy :
34
34
needs : [upload-ersilia-pack, upload-bentoml-multistage]
35
35
if : ${{ needs.upload-ersilia-pack.result == 'failure' && needs.upload-bentoml-multistage.result == 'failure' }}
You can’t perform that action at this time.
0 commit comments