.gitlab-ci.yml: re-use build.sh to avoid maintaining the list of necessary environment variables in two places