admin管理员组文章数量:1123930
I have Azure DevOps Repo in two different organization. First repository is using by developers (Project/Repository A), and the second one to deploy the application using Azure DevOps Pipelines with Ansible under the hood (Project/Repository B).
Currently, we put the new version of application in app-var.yml in Project/Repository B, then commit that change and pipeline deploys the application. I am thinking how to automate that process much to let developers put the version of application in their own repository (Project/Repository A).
Nowadays there is only one pipeline in Repository A which triggers (it monitors the branches from which commits is pushed) the second deployment pipeline (Project/Repository B) deploys DEV stages based on the condition set in Azure DevOps Pipelines.
It looks like that, Project/Repository A where we keep our code application:
<application_name>
- folder1
- file1
- file2
- folder2
- pipeline
- pipeline.yml
name: APP-$(rev:r)
trigger:
branches:
include:
- main
- develop
- release/*
- feature/*
# Rest of the code
Second deployment pipeline in Project/Repository B which is trigger by that above, and it deploys the specific DEV stage based on the branch detected from previous pipeline.
<application_deployment_name>
- ansible
- playbooks
- vars
- app-var.yml -> that file we need to edit first by adding the newer version of application, and than we can enable deployment pipeline which runs the playbook with modified app-var.yml. This is what I would like to be modified by developers in Project/Repository A.
- pipeline
- deployment_pipeline.yml
Is it possible to somehow move/mirror that var. file from Repository B to Repository A, than they edit it, pipelines carry on those variables, than they are consumed by the deployment pipeline in Repository B? I can add more context, if someone would like to support me that task to simplify our current approach to enable developers fast testing. Or maybe someone suggest the other approach, if mine is not good enough?
本文标签: Mirroring repositories between Azure DevOps RepoStack Overflow
版权声明:本文标题:Mirroring repositories between Azure DevOps Repo - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736607305a1945359.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论