firecow / gitlab-ci-local

Tired of pushing to test your .gitlab-ci.yml?
MIT License
2.15k stars 125 forks source link

Support .gitlab-ci.yaml (RFC 9512) #1128

Closed ioggstream closed 5 months ago

ioggstream commented 5 months ago

Expected behavior

Look for .gitlab-ci.yaml since .yaml is the preferred extension according to RFC 9512 https://www.rfc-editor.org/rfc/rfc9512.html

Host information Ubuntu gitlab-ci-local 4.1.33

Containerd binary docker

Additional context

YAML media type registration establishes security and interoperability considerations for yaml content.

firecow commented 5 months ago

Does Gitlab find files with yaml extension?

firecow commented 5 months ago

image

image

Notice how no pipeline was spawned for the "Tralalalala" commit.

Use the --file .gitlab-ci.yaml cli option,

or set an environment variable on your terminal

export GCL_FILE=.gitlab-ci.yaml
firecow commented 5 months ago

image

You can change it in your project settings, which I'm guessing you have done.

We will not change the default in gitlab-ci-local if Gitlab CI/CD doesn't change its default.