-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docker): Provide extended image with all components
Signed-off-by: Helio Chissini de Castro <[email protected]>
- Loading branch information
1 parent
b1089b1
commit b9dc823
Showing
15 changed files
with
215 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# Copyright (C) 2023 The ORT Project Authors (see <https://github.com/oss-review-toolkit/ort/blob/main/NOTICE>) | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# License-Filename: LICENSE | ||
|
||
name: Extended Image | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
workflow_run: | ||
workflows: | ||
- 'Haskell Image' | ||
types: | ||
- completed | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
build: | ||
name: Build ORT Extended Image | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout default branch | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract components metadata (tags, labels) for Ort runtime image | ||
id: meta-ort | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: | | ||
${{ env.REGISTRY }}/${{ github.repository_owner }}/ort-extended | ||
tags: | | ||
type=raw,sha,enable=true,format=short | ||
- name: Build ORT runtime container | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: Dockerfile-extended | ||
push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} | ||
load: false | ||
tags: | | ||
${{ steps.meta-ort.outputs.tags }} | ||
${{ env.REGISTRY }}/${{ github.repository_owner }}/ort-extended:latest | ||
labels: ${{ steps.meta.outputs.labels }} | ||
build-contexts: | | ||
android=docker-image://${{ env.REGISTRY }}/${{ github.repository }}/android:latest | ||
swift=docker-image://${{ env.REGISTRY }}/${{ github.repository }}/swift:latest | ||
sbt=docker-image://${{ env.REGISTRY }}/${{ github.repository }}/sbt:latest | ||
dart=docker-image://${{ env.REGISTRY }}/${{ github.repository }}/dart:latest | ||
dotnet=docker-image://${{ env.REGISTRY }}/${{ github.repository }}/dotnet:latest | ||
haskell=docker-image://${{ env.REGISTRY }}/${{ github.repository }}/haskell:latest | ||
dotnet=docker-image://${{ env.REGISTRY }}/${{ github.repository }}/dotnet:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# Copyright (C) 2023 The ORT Project Authors (see <https://github.com/oss-review-toolkit/ort/blob/main/NOTICE>) | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# License-Filename: LICENSE | ||
|
||
name: Scala Image | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
paths: | ||
- '.ortversions/sbt.versions' | ||
- '.github/workflows/docker-ort-base.yml' | ||
workflow_run: | ||
workflows: ["Swift Image"] | ||
types: | ||
- completed | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
build: | ||
name: Build ORT sbt Image | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout main repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set environment variables | ||
run: | | ||
cat .ortversions/sbt.versions >> $GITHUB_ENV | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract components metadata (tags, labels) for base image | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: | | ||
${{ env.REGISTRY }}/${{ github.repository }}/sbt | ||
tags: | | ||
type=semver,pattern={{version}},value=${{ env.SBT_VERSION }} | ||
- name: Build ORT sbt container | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
target: sbt | ||
push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} | ||
load: false | ||
build-args: | | ||
SBT_VERSION=${{ env.SBT_VERSION }} | ||
tags: | | ||
${{ steps.meta.outputs.tags }} | ||
${{ env.REGISTRY }}/${{ github.repository }}/sbt:latest | ||
labels: ${{ steps.meta.outputs.labels }} | ||
build-contexts: | | ||
ort-base-image=docker-image://${{ env.REGISTRY }}/${{ github.repository }}/base:latest | ||
cache-from: type=gha,scope=ortsbt | ||
cache-to: type=gha,scope=ortsbt,mode=max |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ build/ | |
out/ | ||
/local.properties | ||
/*.iml | ||
Dockerfile.custom | ||
|
||
# Kotest temporary directory | ||
.kotest/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters