Skip to content

Commit

Permalink
Merge pull request #15 from metalefty/use-https-to-clone
Browse files Browse the repository at this point in the history
Use https to clone build system repos
  • Loading branch information
Korulag committed Feb 29, 2024
2 parents 7bc7d45 + a369fa4 commit 0adf197
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
17 changes: 8 additions & 9 deletions roles/dev_deploy/defaults/main/albs_repos.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
albs_repos:
albs-frontend: git@github.com:AlmaLinux/albs-frontend.git
albs-node: git@github.com:AlmaLinux/albs-node.git
albs-web-server: git@github.com:AlmaLinux/albs-web-server.git
albs-sign-node: git@github.com:AlmaLinux/albs-sign-node.git
alma-tests-cacher: git@github.com:AlmaLinux/alma-tests-cacher.git
repo-beholder: git@github.com:AlmaLinux/repo-beholder.git
alts: git@github.com:AlmaLinux/alts.git
albs-sign-file: git@github.com:AlmaLinux/albs-sign-file.git
alma-tests-cacher: https://github.com/AlmaLinux/alma-tests-cacher
albs-frontend: https://github.com/AlmaLinux/albs-frontend.git
albs-node: https://github.com/AlmaLinux/albs-node.git
albs-web-server: https://github.com/AlmaLinux/albs-web-server.git
albs-sign-node: https://github.com/AlmaLinux/albs-sign-node.git
alma-tests-cacher: https://github.com/AlmaLinux/alma-tests-cacher.git
repo-beholder: https://github.com/AlmaLinux/repo-beholder.git
alts: https://github.com/AlmaLinux/alts.git
albs-sign-file: https://github.com/AlmaLinux/albs-sign-file.git
12 changes: 12 additions & 0 deletions roles/dev_deploy/tasks/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,18 @@
- not use_already_cloned_repos
- beholder_enabled or (item.key != "repo-beholder")

- name: Update ALBS sources pushurl
tags: update-albs-sources-pushurl
git_config:
repo: "{{sources_root}}/{{ item.key }}"
name: remote.origin.pushurl
value: "git@github.com:AlmaLinux/{{ item.key }}.git"
scope: local
with_dict: "{{ albs_repos }}"
when:
- not use_already_cloned_repos
- beholder_enabled or (item.key != "repo-beholder")

- name: Sync ALBS sources to remote host
synchronize:
dest: "{{ sources_root }}"
Expand Down

0 comments on commit 0adf197

Please sign in to comment.