ところでlatestって勝手に作られないんだっけ…作られてないな…GitHub Actionsで実際どうやって面倒見ると良いんだろうこれ

Reply to this note

Please Login to reply.

Discussion

docker/metadata-action と docker/build-push-action を組み合わせると幸せになれるかもしれません

GHAでのDockerイメージのビルドに関するGitHub公式のドキュメントも読むといいです

https://docs.github.com/ja/actions/publishing-packages/publishing-docker-images

metadata-actionの方のflavorでlatest=autoとすればlatestタグも作ってくれます

https://github.com/docker/metadata-action#flavor-input

awsのECRにimageあげるときはtagコマンドで打ち込んでますね。