matsuolab / roomba_hack

ロボットシステム入門 / Let's learn how to create intelligent robot systems with Roomba!
https://matsuolab.github.io/roomba_hack_course/
20 stars 11 forks source link

実装のリポジトリでgithub actionsでdocker imageをリリースするようにする #23

Closed TMats closed 2 years ago

Jumpei-Arima commented 2 years ago

以下のworkflowを作成。 https://github.com/matsuolab/roomba_hack/blob/master/.github/workflows/docker-publish.yml

ghcrのlogin userとして @TMats を指定しているので、repoのsecretsにCR_PATを登録していただけばと思います。 (weblab_hsr_tidyupと運用は同じです。)

TMats commented 2 years ago

ありがとうございます,CR_PATの設定はしたんですが,ubuntuの方のイメージのビルドがこけてしまってるっぽいですね https://github.com/matsuolab/roomba_hack/runs/8167846605?check_suite_focus=true (あとコンテナにpushするのってmasterだけにしますか...?それとも全部pushされた方がいいんですかね(自分は前者でもいいような気がします

Jumpei-Arima commented 2 years ago

ビルドこけてたのは、ignitionまわりのインストール中に何故か404 not foundが出てたからですね。re-runしたらうまく行きました。

以下で、pushするのは、masterにpushされた時だけのはずです(PRはtest(buildできるか)だけ実施)。 https://github.com/matsuolab/roomba_hack/blob/master/.github/workflows/docker-publish.yml#L4-L9

TMats commented 2 years ago

あ,すみません見落としていました

ビルドできましたね,releaseに反映されるようになりました.ありがとうございます

image