Skip to content

Commit

Permalink
feat: RTI docker CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Depetrol committed Aug 1, 2024
1 parent 2948f1f commit 6fdcfc6
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/actions/push-rti-docker/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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
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
push: true
tags: lflang/rti:${{ inputs.tag }}
23 changes: 23 additions & 0 deletions .github/workflows/rti-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Push RTI Image to Docker Hub

on:
push:
branches:
- master
workflow_dispatch:
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:
submodules: recursive
fetch-depth: 0
- name: Build and push RTI to Docker Hub
uses: ./.github/actions/push-rti-docker
with:
tag: latest
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

0 comments on commit 6fdcfc6

Please sign in to comment.