Skip to content

Commit

Permalink
feat(docker): Use runtime to do all the work for binaries
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 17, 2023
1 parent efac549 commit b1089b1
Show file tree
Hide file tree
Showing 22 changed files with 170 additions and 323 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
87 changes: 0 additions & 87 deletions .github/workflows/docker-ort-binaries.yml

This file was deleted.

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
Loading

0 comments on commit b1089b1

Please sign in to comment.