admin管理员组文章数量:1332361
I am currently working on a CI Pipeline to create and sign docker images; I uploaded the delegated key for signing to GitLab. During the pipeline, I use download secure file to retrieve the file. My problem now is that, as you can see below, the script reports that it has downloaded the key /var/certs/, but after using a ls on the directory, the file is not there.
Before, I had already tried to store the key inside a VARIABLE and use echo to write the content in the file, but there I lost the new lines, which docker trust doesn't like. I also tried running on moving the repository to gitlab, because I wasn't sure if the Server of my university is up to date, but the execution still fails.
Below, you will see the deployment stage of the pipeline.
deploy:
stage: deploy
image: docker:latest
services:
- docker:latest
variables:
SECURE_FILES_DOWNLOAD_PATH: '/var/certs'
only:
- master
script:
- apk update
- apk add curl
- apk add bash
- curl --silent "; | bash
- ls -la /var/certs/
- ls -la .secure_files/
- echo $SIGNING_KEY_PASSWORD | docker trust key load /var/certs/10505ee4d3913ea70a8d69e19df1a59dc5af99920f9ba4a1b11714b383da4a00.key --name gitlab
# 'docker info' command is used to debug the job.
- docker info
My command to start the gitlab runner is the followin.
sudo gitlab-runner register -n --url "/" --registration-token TOKEN --executor docker --description "My Docker Runner" --docker-image "docker:24.0.5" --docker-privileged
本文标签: dockerDownload secure files doesn39t download filesStack Overflow
版权声明:本文标题:docker - Download secure files doesn't download files - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742318422a2452287.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论