I'm creating a GitLab CI/CD pipeline to deploy an application to Azure Kubernetes Services.
Use the Project/Settings/CICD/Variables section
and add a variable there with type "File"
Then you can use it in the pipeline:
before_script:
- export KUBECONFIG=$KUBECONFIG_FILE