-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Azure DevOps ADO as build and repository option #399
Comments
Procedure to create a service account, key and provision a container based ADO pipeline to do canary operations on the GCP account
On the GCP accountCreate service account in bootstrap project (out of band of terraform for now)
Test clone/pull/push On a local laptop (M1 mac in this case
|
Procedure: upstream github fork is pushed to ADOIn ADOcreate a new projectpbmm-on-gcp-onboarding-fork Repos | importuse https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding.gitAfter import Generate Git Credentialsclone
Procedure to pull from upstream origin
Pull changes from upstream to test - push to remote ado
Push upstream to main
|
Setup ADO Billing or 30 day free trialTest example pipeline and GCP access before 0-bootstrap runskip post subscription conversion response to parallel jobs submitted 20240423:2255 self hosted agent as backupproject settings | agent pools | add self-hosted new agent - osx - download
|
windows local agent
need trailing slash regenerated token with all-access - working
local agent was not running
force pool in yml
Windows local agent |
Test 0-bootstrap ADO trigger from 2nd org olapp
it takes a while 1229-1235
Try empty repo with a single pipeline - workedhttps://[email protected]/obrienlabsxyz/tef-gcp-pbmm-lz/_git/tef-gcp-pbmm-lz
retry clone from ado on pbmm repo - issue is 48KB/s
|
Test GCP operation from the agent to startin cloud shell prepare the SA
generate a SA key
Download key from GCP - upload to ADO | pipelines | library | secure files create service connection in project settings | pipelines | service connectionsgenericno - ## Authorize the key for all pipelines - pipeline permissions tabtry https://dev.to/ib1/azure-devops-recipe-deploying-google-cloud-function-to-gcp-22l3
on agent
Add gcloud install
we need a windows version |
ADO pipeline yamsado pipeline yamls will go into the following directory |
testing in obrienlabs.app - 2nd deployment
|
Dockerfile image in DockerHub iteration in #409 retest on terraform 1.3.10
retest remotely
|
terraform output reference for 0-bootstrap - relevant to ADO7 repos (including one to build the docker container)
|
ADO 0-bootstrap continued6 repo creationsee reference https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/blob/main/0-bootstrap/scripts/git_create_branches_helper.sh Comment out sections in output.tf and variables.tf
uncomment sections in terraform.example.tfvarsuncomment sections in providers.tf - for any tf deploying ado infra
|
ADO 0-bootstrap continued - local gcloud shell instructions workingsee
Clone the public ADO repository into your local environmentFor local gcloud environment authentication setup - see https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/wiki/DevOps#authenticate-a-local-cloud-shell
Create 5 additional private GCP repos belowgcp-bootstrap, gcp-policies, gcp-organization, gcp-networks, gcp-projects gcp-bootstrap
local gcloud example
|
|
See latest 3rd org testing 50 min for #421 in #421 (comment) |
merge main into gh399-ado
|
restart 0-bootstrap ADO testingSync with main first on osx ado repo
rebase from upstream specifically for gh399-ado not just a main merge into gh399-ado - missing changes in 399 for terraform.example.tf
Fixed upstream ADO merge - verify repo and branch
|
revisit 0-bootstrapjust after the step to cd ./envs/shared
|
restart ADO work 20240527
see ADO SSH key
use token
setup new build from branch with existing ymlworking with
|
Billing setup after 30 dayhttps://learn.microsoft.com/en-us/azure/devops/organizations/billing/set-up-billing-for-your-organization-vs?view=azure-devops Need to add test plans to usershttps://learn.microsoft.com/en-us/azure/devops/organizations/billing/buy-basic-access-add-users?view=azure-devops |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days |
Work Items
20240502: note CB/CSR option details in https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/wiki#20240502-repo-state
DockerHub terraform 1.3.10 image in #409
https://hub.docker.com/r/obrienlabs/terraform-example-foundation-ado/tags
https://hub.docker.com/repository/docker/obrienlabs/terraform-example-foundation-ado/general
The default is Cloud Build and Cloud Source Repositories.
We will also support alternatives like Github and ADO
Documentation on
https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/wiki/DevOps#azure-devops
Branch / Issues
Test accounts
Terminals
Documentation
Artifacts to migrate from CB to ADO
ADO Setup
Create new ADO org
select private project
Usage
The text was updated successfully, but these errors were encountered: