What is the difference between default:image and image?

I had a look at basic pipelines as they are described in the documentation. The example uses the image keyword at the top level to set the default image.

image: alpine

However, in the .gitlab-ci.yml keyword reference, the following is used to set the default image.

  image: ruby:3.0

Are these two ways to specify the default image equivalent?

Thanks in advance

A globally defined image: section is deprecated. You’re encouraged to use default: image: instead.


Thanks a lot for the information!