SSH git
#893
Replies: 1 comment
-
|
Hi, I opened a feature request for this as this is something that more people will ask for: #896 |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hi, it would be great if, in addition to https/http, SSH could also be used as an option for checking out. To do this, the SSH key would have to be stored on the host, and there would be no need to work with tokens or PAT.
example Steps:
ssh-keygen -t rsa-sha2-512 -f ~/.ssh/ado_id_rsa -C "doco-cd@host"copy ssh key to git repo
doco-cd compose.yaml
services: doco-cd: image: ghcr.io/kimdre/doco-cd:latest container_name: doco-cd restart: unless-stopped ports: ["80:80"] environment: # No GIT_ACCESS_TOKEN required, we use SSH # Important: Poll Config must use SSH URLs POLL_CONFIG: | - url: git@ssh.dev.azure.com:v3/<ORG>/<PROJECT>/<REPO> reference: refs/heads/main interval: 180 volumes: - /var/run/docker.sock:/var/run/docker.sock # Add SSH keys & known_hosts to the container: - ~/.ssh:/home/nonroot/.ssh:rountestet.
Beta Was this translation helpful? Give feedback.
All reactions