Ci/cd netbean projects

Hi,
I am new to gitlab, I am migrating my old netbean projects into gitlab. Just wonder is there any simple way to build the gitlab-ci.yaml, such as: (just example)

image: netbean
script:
- netbean build

or any helps/documentation to migrate the project?

thank you.