I am forking my repository which have CI/CD pipeline for building gitlab pages.
But whenever my forked project run the pipeline it keep using parent (main repo) variable settings, insteam forked variable settings.
I have tried running pipeline using https://gitlab.com/amalsholeh/crm/alhilal/-/pipelines/new, and define variable there, but it still using parent variable.
How do i force the building gitlab page on my forked repo to use its own variable settings not parent variable settings.
Below is my gitlab-ci.yml file config:
image: node
before_script:
- npm install --force
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
- .next/cache/
pages:
script:
- NEXT_PUBLIC_ENDPOINT=$API_ENDPOINT NEXT_PUBLIC_COOKIE_KEY=$COOKIE_KEY NEXT_PUBLIC_NAME=$APP_NAME NEXT_PUBLIC_COLOR_PRIMARY=$COLOR_PRIMARY NEXT_PUBLIC_LOGO=$LOGO_URL NEXT_PUBLIC_APPICON=$APP_ICON_URL npm run-script build && npm run-script export
# - mv out public
# - mkdir .public
- cp -r out/* public
# - mv .public public
artifacts:
paths:
- public
only:
- main