You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to define a dependency so that depending on the type of build a different git url is used for a specific dependency? (local or in docker)?
#5830
But when i want to use this dependency inside a Docker container that is used for deployment I need to use GitHub deploy keys when pulling the dependency inside a docker container. So the git url is different.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it possible to define a dependency so that depending on the type of build a different git url is used for a specific dependency?
Example:
When working in a local environment I can define a remote dependency like below.. local SSH keys are used to pull the dependency.
<dep-name> = {git = "ssh://git@github.com/<organisation>/<gitrepo-name>", rev = "<branch-name>"}
But when i want to use this dependency inside a Docker container that is used for deployment I need to use GitHub deploy keys when pulling the dependency inside a docker container. So the git url is different.
<dep-name> = {git = "git@<ssh-config-name>:<organisation>/<gitrepo-name>.git", rev = "<branch-name>"}
Can a dependency be defined in a way that depending on the type of build a different Git url is different?
Beta Was this translation helpful? Give feedback.
All reactions