Replies: 2 comments 3 replies
|
Why don't you use deploy keys? |
0 replies
|
The key I use in my workflow is already a deploy key :
The only way I found today is the one in my workflow:
The main issue is that call to This docker environment is isolated from the CI/CD (variables are not passed to docker-in-docker) After some investigation, I found that line |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Following is my current workflow to handle private repositories (odoo image is built using Gitlab CI using DinD, docker-in-docker), but I think that my way to handle it is not correct (I would like to avoid a call to
docker-squash). Any idea to do it properly ?I'm adding a private repository to
repos.yamlAnd before building, the private key is copied to fetch this private repository
An intermediate script is added in the Doodba template to delete this key when the build is ended:
But since the SSH key is kept in image layers, I have to squash the image to ensure that this private key is not published in the container registry
Any idea to fetch a private repo ? ssh-agent ? environment variables ?
All reactions