-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't seem to get VARIABLE to work in ~/.gitlab-ci-local/.env
#1165
Comments
ah i see... it is not compatible with setting any variables via CLI. when i remove all |
it also apparently can't handle multiple |
also, when you specify multiple variables inside a single # ~/.gitlab-ci-local/.env
VARIABLE="CI_JOB_TOKEN=$GITLAB_ACCESS_TOKEN;DOCKER_HOST='xxxxx'" ❯ gitlab-ci-local 'my-job'
Using fallback branch data
parsing and downloads finished in 21 ms
my-job starting shell (test)
my-job $ if [ -n "$CI_JOB_TOKEN" ]; then echo "can't find CI_JOB_TOKEN!" && exit 1; fi
my-job > can't find CI_JOB_TOKEN!
my-job finished in 11 ms FAIL 1
FAIL my-job
> can't find CI_JOB_TOKEN! putting a space # ~/.gitlab-ci-local/.env
VARIABLE="CI_JOB_TOKEN=$GITLAB_ACCESS_TOKEN DOCKER_HOST='xxxxx'" ❯ gitlab-ci-local 'my-job'
Using fallback branch data
parsing and downloads finished in 22 ms
my-job starting shell (test)
my-job $ if [ -n "$CI_JOB_TOKEN" ]; then echo "can't find CI_JOB_TOKEN!" && exit 1; fi
my-job $ if [ -n "$DOCKER_HOST" ]; then echo "can't find DOCKER_HOST!" && exit 1; fi
my-job > can't find DOCKER_HOST!
my-job finished in 12 ms FAIL 1
FAIL my-job
> can't find DOCKER_HOST! |
#992 Yeah, we are tracking the issue here |
Minimal .gitlab-ci.yml illustrating the issue
Expected behavior
nothing is printed -- job succeeds.
Host information
macOS
gitlab-ci-local 4.47.0
Containerd binary
Are you using docker or podman, or any other relevant containerization tool.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: