2.1 KiB
2.1 KiB
Migrate an Azure DevOps pipeline to GitHub Actions
In this lab, you will use the Valet migrate command to migrate an Azure DevOps pipeline to GitHub Actions.
Prerequisites
- Follow all steps here to set up your environment
- Create or start a codespace in this repository (if not started)
- Completed the Valet audit lab.
Identify the Azure DevOps pipeline ID to use
You will need a pipeline ID to perform the migration
- Go to the
scripts/ValetBootstrap/pipelinesfolder - Open the
scripts/ValetBootstrap/pipelines/valet-pipeline1.config.jsonfile - Look for the
web - hreflink - At the end of the link is the pipeline ID. Copy or note the ID.
Example
Perform a migration
You will use the codespace preconfigured in this repository to perform the migration.
- Navigate to the codespace Visual Studio Code terminal
- Verify you are in the scripts directory
- Copy the following command and replace:
GITHUB-ORGwith the name of your organization.GITHUB-REPOwith the name of your repository.PIPELINE-IDwith your pipeline ID.
- Now, from the
./scriptsfolder in your repository, runvalet migrateto migrate the pipeline to GitHub Actions.
cd scripts
valet migrate azure-devops pipeline --target-url https://github.com/GITHUB-ORG/GITHUB-REPO --pipeline-id PIPELINE-ID
Example
- Valet will create a pull request directly to your GitHub repository.
- Click the green pull request link in the output of the migrate command. See below.
Example
View the pull request
The migrate output will show you the pull request on GitHub.



