-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into sdo/selectionStyle
- Loading branch information
Showing
66 changed files
with
1,198 additions
and
204 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Push RTI to Docker Hub | ||
description: Build and push the RTI image to Docker Hub | ||
inputs: | ||
tag: | ||
description: 'The tag of the RTI image to build and push' | ||
required: true | ||
default: 'latest' | ||
DOCKERHUB_USERNAME: | ||
description: 'The username to log in to Docker Hub' | ||
required: true | ||
DOCKERHUB_TOKEN: | ||
description: 'The token to log in to Docker Hub' | ||
required: true | ||
latest: | ||
description: 'Also push as latest tag if true' | ||
default: 'false' | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ inputs.DOCKERHUB_USERNAME }} | ||
password: ${{ inputs.DOCKERHUB_TOKEN }} | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Check out lingua-franca repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
- name: Build and push | ||
uses: docker/build-push-action@v6 | ||
with: | ||
file: ./core/src/main/resources/lib/c/reactor-c/core/federated/RTI/rti.Dockerfile | ||
context: ./core/src/main/resources/lib/c/reactor-c | ||
platforms: linux/amd64, linux/arm64, linux/arm/v7, linux/riscv64 | ||
push: true | ||
tags: lflang/rti:${{ inputs.tag }} | ||
if: ${{ inputs.latest == 'false' }} | ||
- name: Build and push as latest | ||
uses: docker/build-push-action@v6 | ||
with: | ||
file: ./core/src/main/resources/lib/c/reactor-c/core/federated/RTI/rti.Dockerfile | ||
context: ./core/src/main/resources/lib/c/reactor-c | ||
platforms: linux/amd64, linux/arm64, linux/arm/v7, linux/riscv64 | ||
push: true | ||
tags: lflang/rti:${{ inputs.tag }}, lflang/rti:latest | ||
if: ${{ inputs.latest == 'true' }} |
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,42 @@ | ||
name: Push RTI Image to Docker Hub | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
name: Build and push RTI to Docker Hub | ||
steps: | ||
- name: Check out lingua-franca repository | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: lf-lang/lingua-franca | ||
submodules: recursive | ||
fetch-depth: 0 | ||
- name: Look up the current version and export as environment variable | ||
run: | | ||
export LF_VERSION=$(cat core/src/main/resources/org/lflang/StringsBundle.properties | sed -n 's/.*VERSION = \(.*\)/\1/p' | tr '[:upper:]' '[:lower:]') | ||
echo "lf_version=$LF_VERSION" | ||
echo "lf_version=$LF_VERSION" >> $GITHUB_ENV | ||
- name: Build and push RTI to Docker Hub | ||
uses: ./.github/actions/push-rti-docker | ||
with: | ||
tag: ${{ env.lf_version }} | ||
latest: false | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | ||
if: ${{ endsWith(env.lf_version, '-snapshot') }} | ||
|
||
- name: Update latest (released versions only) | ||
uses: ./.github/actions/push-rti-docker | ||
with: | ||
tag: ${{ env.lf_version }} | ||
latest: true | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | ||
if: ${{ !endsWith(env.lf_version, '-snapshot') }} |
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
Oops, something went wrong.