docker/build-push-action
https://github.com/docker/build-push-action/
#GitHub_Actions #Docker
GitHub Action to build and push Docker images with Buildx
引数の形式
https://github.com/docker/build-push-action/tree/v5/#inputs
List
a newline-delimited string
|で区切って続ける
CSV
カンマ区切りの1行の文字列
引数
push
a shorthand for --output=type=registry
tags
複数指定できる!
セマンティックバージョニングタグとlatestタグ
List/CSV、どちらでも指定できる
context
Build's context is the set of files located in the specified PATH or URL
例:.(リポジトリのルート)の指定
file
Path to the Dockerfile. (default {context}/Dockerfile)
platforms
参照 Multi-platform image with GitHub Actions
build-args
形式はFOO=BAR(Listなので改行で区切る)