mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-23 09:47:25 +00:00
tag_repos: Clone using https
If ssh keys are not set ssh clone wont work. Clone using https and push using ssh. Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
@@ -84,8 +84,9 @@ tag_repos() {
|
||||
|
||||
info "Creating tag ${kata_version} in all repos"
|
||||
for repo in "${repos[@]}"; do
|
||||
git clone --quiet "git@github.com:${OWNER}/${repo}.git"
|
||||
git clone --quiet "https://github.com/${OWNER}/${repo}.git"
|
||||
pushd "${repo}"
|
||||
git remote set-url --push origin "git@github.com:${OWNER}/${repo}.git"
|
||||
git fetch origin --tags
|
||||
if git rev-parse -q --verify "refs/tags/${kata_version}"; then
|
||||
info "$repo already has tag "
|
||||
|
Reference in New Issue
Block a user