AR ホームベーカリー

オイラのアウトプット用ホームベーカリー!

The 'as' keyword should match the case of the 'from' keyword

actions/cache@v2 が廃止されるので、ついでに色々サボってた actions のアップデートをしていたら、 ビルドのトコで掲題の通り警告が出るようになっていた。

The 'as' keyword should match the case of the 'from' keyword: docker/Dockerfile#L1 FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

docs.docker.com

上記リンク先にも書いてあるけど、こういうやつがダメらしい。

- FROM ruby:3.1.4-bullseye as build
+ FROM ruby:3.1.4-bullseye AS build

...

は〜なるほどね。

ちなみにずっと workflow 用の yaml ファイルを見てて「どこにも FROM ... AS... なんて書いてないんだけどどこでダメになってんだ?」と悩んでいました。

元になる Dockerfile 側でしたね……。