Skip to content

Commit 20e66c3

Browse files
authored
Feature/mqtt endpoint (#414)
* add python script for mqtt heartbeat Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com> * add generate proto Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com> * check connection Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com> * enable send broadcast Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com> * specify UDP port and address Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com> * modify Dockerfile Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com> * move directory Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com> * configure action Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com> * comment out description action Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com> * update docker action Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com> * fix yaml Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com> * fix platform Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com> * modify matrix Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com> --------- Signed-off-by: Masaya Kataoka <ms.kataoka@gmail.com>
1 parent e57bd6b commit 20e66c3

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.github/workflows/docker/mqtt_endpoint/action.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ inputs:
88
docker_password:
99
description: "Password for Dockerhub"
1010
required: true
11+
platform:
12+
description: "Platform of the image"
13+
required: true
1114

1215
runs:
1316
using: "composite"
@@ -35,6 +38,7 @@ runs:
3538
cache-from: type=registry,ref=wamvtan/mqtt_endpoint:buildcache
3639
cache-to: type=registry,ref=wamvtan/mqtt_endpoint:buildcache,mode=max
3740
push: true
41+
platforms: ${{ inputs.platform }}
3842
- name: Build Docker Image
3943
if: ${{ github.event_name == 'pull_request'}}
4044
uses: docker/build-push-action@v2
@@ -49,6 +53,7 @@ runs:
4953
no-cache: false
5054
cache-from: type=registry,ref=wamvtan/mqtt_endpoint:buildcache
5155
push: false
56+
platforms: ${{ inputs.platform }}
5257
# - uses: peter-evans/dockerhub-description@v3
5358
# if: ${{ github.event_name == 'pull_request'}}
5459
# with:
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
version: "3.8"
2+
services:
3+
mqtt_endpoint:
4+
image: wamvtan/mqtt_endpoint:latest
5+
network_mode: host

.github/workflows/docker_push.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,16 @@ jobs:
9696
docker_password: ${{ secrets.DOCKER_PASSWORD }}
9797
mqtt_endpoint:
9898
name: build and push wamvtan/mqtt_endpoint
99-
runs-on: ubuntu-22.04-arm
99+
strategy:
100+
matrix:
101+
# platform: ["aarch64", "amd64"]
102+
# build_os: ["ubuntu-22.04-arm", "ubuntu-22.04"]
103+
include:
104+
- platform: aarch64
105+
build_os: ubuntu-22.04-arm
106+
- platform: amd64
107+
build_os: ubuntu-22.04
108+
runs-on: ${{ matrix.build_os }}
100109
timeout-minutes: 30
101110
steps:
102111
- uses: actions/checkout@v4
@@ -105,6 +114,7 @@ jobs:
105114
with:
106115
docker_username: ${{ secrets.DOCKER_USERNAME }}
107116
docker_password: ${{ secrets.DOCKER_PASSWORD }}
117+
platform: ${{ matrix.platform }}
108118
# Docker Docker Pull will be difficult due to communication capacity, so this line will be uncommented for the duration of RoboBoat.
109119
# wamv:
110120
# needs: export_wamv_repos

0 commit comments

Comments
 (0)