Skip to content

Commit

Permalink
fix(docker): Correct workflow order
Browse files Browse the repository at this point in the history
Signed-off-by: Helio Chissini de Castro <[email protected]>
  • Loading branch information
heliocastro committed Sep 7, 2023
1 parent e5b8e6b commit 912e03d
Show file tree
Hide file tree
Showing 14 changed files with 75 additions and 74 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/docker-ort-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
# SPDX-License-Identifier: Apache-2.0
# License-Filename: LICENSE

name: Ort Docker Android Container
name: Android Image

on:
workflow_dispatch:
pull_request:
branches:
- main
push:
paths:
- '.ortversions/android.versions'
- '.github/workflows/docker-ort-base.yml'
push:
branches:
- main
workflow_run:
workflows: ["Ort Docker Base Image"]
workflows: ["Base Image"]
types:
- completed

Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
with:
context: .
target: android
push: true
push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
load: false
build-args: |
ANDROID_CMD_VERSION=${{ env.ANDROID_CMD_VERSION }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/docker-ort-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
# SPDX-License-Identifier: Apache-2.0
# License-Filename: LICENSE

name: Ort Docker Base Container
name: Base Image

on:
workflow_dispatch:
pull_request:
branches:
- main
push:
paths:
- 'Dockerfile'
- '.ortversions/base.versions'
- 'Dockerfile'
push:
branches:
- main

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
with:
context: .
target: ort-base-image
push: true
push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
load: false
build-args: |
JAVA_VERSION=${{ env.JAVA_VERSION }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker-ort-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# SPDX-License-Identifier: Apache-2.0
# License-Filename: LICENSE

name: Ort Binaries Container
name: Binary Image

on:
push:
Expand All @@ -26,7 +26,7 @@ on:
- main
workflow_dispatch:
workflow_run:
workflows: ["Ort Docker Base Image"]
workflows: ["Base Image"]
types:
- completed

Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
with:
context: .
target: ortbin
push: true
push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
load: false
build-args: |
ORT_VERSION=${{ env.ORT_VERSION }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docker-ort-dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
# SPDX-License-Identifier: Apache-2.0
# License-Filename: LICENSE

name: Ort Docker Dart Container
name: Dart Image

on:
workflow_dispatch:
pull_request:
push:
branches:
- main
push:
pull_request:
paths:
- '.ortversions/dart.versions'
- '.github/workflows/docker-ort-base.yml'
workflow_run:
workflows: ["Ort Docker Base Image"]
workflows: ["Base Image"]
types:
- completed

Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
with:
context: .
target: dart
push: ${{ github.event_name == 'push' }}
push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
load: false
build-args: |
DART_VERSION=${{ env.DART_VERSION }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docker-ort-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
# SPDX-License-Identifier: Apache-2.0
# License-Filename: LICENSE

name: Ort Docker Dotnet Container
name: Dotnet Image

on:
workflow_dispatch:
pull_request:
push:
branches:
- main
push:
pull_request:
paths:
- '.ortversions/dotnet.versions'
- '.github/workflows/docker-ort-base.yml'
workflow_run:
workflows: ["Ort Docker Base Image"]
workflows: ["Base Image"]

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
with:
context: .
target: dotnet
push: ${{ github.event_name == 'push' }}
push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
load: false
build-args: |
DOTNET_VERSION=${{ env.DOTNET_VERSION }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docker-ort-golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
# SPDX-License-Identifier: Apache-2.0
# License-Filename: LICENSE

name: Ort Golang Container
name: Golang Image

on:
workflow_dispatch:
pull_request:
push:
branches:
- main
push:
pull_request:
paths:
- '.ortversions/golang.versions'
- '.github/workflows/docker-ort-base.yml'
workflow_run:
workflows: ["Ort Docker Base Image"]
workflows: ["Base Image"]
types:
- completed

Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
with:
context: .
target: golang
push: ${{ github.event_name == 'push' }}
push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
load: false
build-args: |
GO_DEP_VERSION=${{ env.GO_DEP_VERSION }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docker-ort-haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
# SPDX-License-Identifier: Apache-2.0
# License-Filename: LICENSE

name: Ort Docker Haskell Container
name: Haskell Image

on:
workflow_dispatch:
pull_request:
push:
branches:
- main
push:
pull_request:
paths:
- '.ortversions/haskell.versions'
- '.github/workflows/docker-ort-base.yml'
workflow_run:
workflows: ["Ort Docker Base Image"]
workflows: ["Base Image"]
types:
- completed

Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
with:
context: .
target: haskell
push: true
push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
load: false
build-args: |
HASKELL_STACK_VERSION=${{ env.HASKELL_STACK_VERSION }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docker-ort-nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
# SPDX-License-Identifier: Apache-2.0
# License-Filename: LICENSE

name: Ort NodeJS Container
name: NodeJS Image

on:
workflow_dispatch:
pull_request:
push:
branches:
- main
push:
pull_request:
paths:
- '.ortversions/nodejs.versions'
- '.github/workflows/docker-ort-base.yml'
workflow_run:
workflows: ["Ort Docker Base Image"]
workflows: ["Base Image"]
types:
- completed

Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
with:
context: .
target: nodejs
push: ${{ github.event_name == 'push' }}
push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
load: false
build-args: |
NODEJS_VERSION=${{ env.NODEJS_VERSION }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docker-ort-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
# SPDX-License-Identifier: Apache-2.0
# License-Filename: LICENSE

name: Ort Python Container
name: Python Image

on:
workflow_dispatch:
pull_request:
push:
branches:
- main
push:
pull_request:
paths:
- '.ortversions/python.versions'
- '.github/workflows/docker-ort-base.yml'
workflow_run:
workflows: ["Ort Docker Base Image"]
workflows: ["Base Image"]
types:
- completed

Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
with:
context: .
target: python
push: ${{ github.event_name == 'push' }}
push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
load: false
build-args: |
CONAN_VERSION=${{ env.CONAN_VERSION }}
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/docker-ort-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,20 @@
# SPDX-License-Identifier: Apache-2.0
# License-Filename: LICENSE

name: Ort Ruby Container
name: Ruby Image

on:
workflow_run:
workflows: ["Ort Docker Base Image"]
workflow_dispatch:
pull_request:
push:
branches:
- main
push:
pull_request:
paths:
- '.ortversions/ruby.versions'
- '.github/workflows/docker-ort-base.yml'
workflow_run:
workflows: ["Base Image"]


env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -76,7 +77,7 @@ jobs:
with:
context: .
target: ruby
push: ${{ github.event_name == 'push' }}
push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
load: false
build-args: |
RUBY_VERSION=${{ env.RUBY_VERSION }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/docker-ort-runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# SPDX-License-Identifier: Apache-2.0
# License-Filename: LICENSE

name: Ort Runtime Container
name: Runtime Image

on:
workflow_dispatch:
Expand All @@ -27,12 +27,12 @@ on:
- main
workflow_run:
workflows:
- 'Ort Binaries Container'
- 'Ort Python Container'
- 'Ort NodeJS Container'
- 'Ort Ruby Container'
- 'Ort Rust Container'
- 'Ort Golang Container'
- 'Binary Image'
- 'Python Image'
- 'NodeJS Image'
- 'Ruby Image'
- 'Rust Image'
- 'Golang Image'
types:
- completed

Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
with:
context: .
target: run
push: ${{ github.event_name == 'push' }}
push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
load: false
build-args: |
NODEJS_VERSION=${{ env.NODEJS_VERSION }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docker-ort-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
# SPDX-License-Identifier: Apache-2.0
# License-Filename: LICENSE

name: Ort Rust Container
name: Rust Image

on:
workflow_dispatch:
pull_request:
push:
branches:
- main
push:
pull_request:
paths:
- '.ortversions/rust.versions'
- '.github/workflows/docker-ort-base.yml'
workflow_run:
workflows: ["Ort Docker Base Image"]
workflows: ["Base Image"]

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
with:
context: .
target: rust
push: ${{ github.event_name == 'push' }}
push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
load: false
build-args: |
RUST_VERSION=${{ env.RUST_VERSION }}
Expand Down
Loading

0 comments on commit 912e03d

Please sign in to comment.