GitLab :
.gitlab-ci.yml syntax error
docker exec -i XXX pip3 install -r ./requirements_os_specific.txt --target=./packages --platform=manylinux1_x86_64 --only-binary=:all:
this command giving a syntax error .
"Error: before_script config should be an array of strings"
This work fine if I remove "--only-binary=:all:
"
variables : IMAGE_NAME: xxx
before_script:
- whoami
- echo $GitLabPassword
- docker login -u Prasenjit.Chowdhury -p $GitLabPassword xxxxxxx
- docker -v
- docker exec -i abc python -V
- docker exec -i abc aws --version
- docker exec -i abc pip3 install -r ./requirements_os_specific.txt --target=./packages --platform=manylinux1_x86_64 --only-binary=:all:
:
This script works fine if I remove the last line
You have to escape a colon :
in yaml. This can be done by surrounding the whole entry with quotes "
.
Replace:
- docker exec -i abc pip3 install -r ./requirements_os_specific.txt --target=./packages --platform=manylinux1_x86_64 --only-binary=:all:
with:
- "docker exec -i abc pip3 install -r ./requirements_os_specific.txt --target=./packages --platform=manylinux1_x86_64 --only-binary=:all:"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With