|
1 | 1 | ---
|
2 |
| -title: 'Quickstart: Create a CI/CD pipeline for PHP with Azure DevOps Projects' |
3 |
| -description: DevOps Projects makes it easy to get started on Azure. It helps you launch an app on an Azure service of your choice in few quick steps. |
| 2 | +title: 'Quickstart: Create a CI/CD pipeline for PHP with Azure DevOps Starter' |
| 3 | +description: DevOps Starter makes it easy to get started on Azure. It helps you launch an app on an Azure service of your choice in few quick steps. |
4 | 4 | ms.prod: devops
|
5 | 5 | ms.technology: devops-cicd
|
6 | 6 | services: vsts
|
7 | 7 | documentationcenter: vs-devops-build
|
8 | 8 | author: mlearned
|
9 | 9 | manager: gwallace
|
10 |
| -editor: '' |
11 |
| -ms.assetid: |
12 | 10 | ms.workload: web
|
13 | 11 | ms.tgt_pltfrm: na
|
14 | 12 | ms.topic: quickstart
|
15 |
| -ms.date: 07/09/2018 |
| 13 | +ms.date: 03/24/2020 |
16 | 14 | ms.author: mlearned
|
17 | 15 | ms.custom: mvc
|
18 |
| -monikerRange: 'vsts' |
19 | 16 | ---
|
20 | 17 |
|
| 18 | +# Create a CI/CD pipeline for PHP with Azure DevOps Starter |
21 | 19 |
|
22 |
| -# Create a CI/CD pipeline for PHP with Azure DevOps Projects |
23 |
| - |
24 |
| -Azure DevOps Projects presents a simplified experience that creates Azure resources and sets up a continuous integration (CI) and continuous delivery (CD) pipeline for your PHP app in Azure Pipelines. |
| 20 | +Azure DevOps Starter presents a simplified experience that creates Azure resources and sets up a continuous integration (CI) and continuous delivery (CD) pipeline for your PHP app in Azure Pipelines. |
25 | 21 |
|
26 | 22 | If you don't have an Azure subscription, you can get one for free through [Visual Studio Dev Essentials](https://visualstudio.microsoft.com/dev-essentials/).
|
27 | 23 |
|
28 | 24 | ## Sign in to the Azure portal
|
29 | 25 |
|
30 |
| - DevOps Projects creates a CI/CD pipeline in Azure Pipelines. You can create a free new Azure DevOps organization or use an existing organization. DevOps Projects also creates Azure resources in the Azure subscription of your choice. |
| 26 | + DevOps Starter creates a CI/CD pipeline in Azure Pipelines. You can create a free new Azure DevOps organization or use an existing organization. DevOps Projects also creates Azure resources in the Azure subscription of your choice. |
31 | 27 |
|
32 | 28 | 1. Sign in to the [Microsoft Azure portal](https://portal.azure.com).
|
33 | 29 |
|
34 |
| -1. In the left pane, select the **Create a resource** icon, and then search for **DevOps Projects**. |
35 |
| - |
36 |
| -3. Select **Create**. |
| 30 | +1. In the search box, type **DevOps Starter**, and then select. Click on **Add** to create a new one. |
37 | 31 |
|
38 |
| -  |
| 32 | +  |
39 | 33 |
|
40 | 34 | ## Select a sample application and Azure service
|
41 | 35 |
|
42 |
| -1. Select the PHP sample application. |
43 |
| - The PHP samples include a choice of several application frameworks.The default sample framework is Laravel. |
44 |
| - |
45 |
| -2. Leave the default setting, and then select **Next**. |
| 36 | +1. Select the PHP sample application. The PHP samples include a choice of several application frameworks. The default sample framework is Laravel. |
| 37 | + |
| 38 | +1. Leave the default setting, and then select **Next**. |
46 | 39 |
|
47 |
| -1. Web App For Containers is the default deployment target. |
48 |
| - The application framework, which you chose previously, dictates the type of Azure service deployment target that's available here. Leave the default service, and then select **Next**. |
| 40 | +1. Web App For Containers is the default deployment target. The application framework, which you chose previously, dictates the type of Azure service deployment target that's available here. Leave the default service, and then select **Next**. |
49 | 41 |
|
50 | 42 | ## Configure Azure DevOps and an Azure subscription
|
51 | 43 |
|
52 | 44 | 1. Create a new Azure DevOps organization or select an existing organization.
|
53 | 45 |
|
54 |
| - a. Choose a name for your project in Azure DevOps. |
55 |
| - |
56 |
| - b. Select your Azure subscription and location, enter a name for your application, and then select **Done**. |
57 |
| - After few minutes, the DevOps Projects dashboard is displayed in the Azure portal. A sample application is set up in a repository in your Azure DevOps organization, a build runs, and your application deploys to Azure. This dashboard provides visibility into your code repository, your CI/CD pipeline, and your application in Azure. |
58 |
| - |
| 46 | + a. Choose a name for your project in Azure DevOps. |
| 47 | + |
| 48 | + b. Select your Azure subscription and location, enter a name for your application, and then select **Done**. |
| 49 | + After few minutes, the DevOps Starter dashboard is displayed in the Azure portal. A sample application is set up in a repository in your Azure DevOps organization, a build runs, and your application deploys to Azure. This dashboard provides visibility into your code repository, your CI/CD pipeline, and your application in Azure. |
| 50 | + |
59 | 51 | 2. Select **Browse** to view your running application.
|
60 | 52 |
|
61 |
| -  |
62 |
| - |
63 |
| - DevOps Projects automatically configured a CI build and release trigger. You're now ready to collaborate with a team on a PHP app with a CI/CD process that automatically deploys your latest work to your web site. |
| 53 | +  |
| 54 | + |
| 55 | + DevOps Starter automatically configured a CI build and release trigger. You're now ready to collaborate with a team on a PHP app with a CI/CD process that automatically deploys your latest work to your web site. |
64 | 56 |
|
65 | 57 | ## Commit code changes and execute CI/CD
|
66 | 58 |
|
67 |
| - DevOps Projects creates a Git repository in Azure Repos or GitHub. To view the repository and make code changes to your application, take the following steps: |
| 59 | + DevOps Starter creates a Git repository in Azure Repos or GitHub. To view the repository and make code changes to your application, take the following steps: |
68 | 60 |
|
69 |
| -1. On the left of the DevOps Projects dashboard, select the link for your master branch. |
70 |
| - This link opens a view to the newly created Git repository. |
| 61 | +1. On the left of the DevOps Starter dashboard, select the link for your master branch. This link opens a view to the newly created Git repository. |
71 | 62 |
|
72 |
| -1. To view the repository clone URL, select **Clone** from the top right of the browser. |
73 |
| - You can clone your Git repository in your favorite IDE. In the next few steps, use the web browser to make and commit code changes directly to the master branch. |
| 63 | +1. To view the repository clone URL, select **Clone** from the top right of the browser. You can clone your Git repository in your favorite IDE. In the next few steps, use the web browser to make and commit code changes directly to the master branch. |
74 | 64 |
|
75 | 65 | 1. On the left, go to the **resources/views/welcome.blade.php** file.
|
76 | 66 |
|
77 | 67 | 1. Select **Edit**, and then make a change to some of the text. For example, change some of the text for one of the div tags.
|
78 | 68 |
|
79 | 69 | 1. Select **Commit**, and then save your changes.
|
80 | 70 |
|
81 |
| -1. In your browser, go to the DevOps Projects dashboard. |
82 |
| -You should now see a build in progress. The changes you just made are automatically built and deployed via a CI/CD pipeline. |
| 71 | +1. In your browser, go to the DevOps Starter dashboard. You should now see a build in progress. The changes you just made are automatically built and deployed via a CI/CD pipeline. |
83 | 72 |
|
84 | 73 | ## Examine the CI/CD pipeline
|
85 | 74 |
|
86 |
| - DevOps Projects automatically configures a full CI/CD pipeline in Azure Pipelines. Explore and customize the pipeline as needed. To familiarize yourself with the build and release pipelines, do the following: |
| 75 | + DevOps Starter automatically configures a full CI/CD pipeline in Azure Pipelines. Explore and customize the pipeline as needed. To familiarize yourself with the build and release pipelines, do the following: |
87 | 76 |
|
88 |
| -1. At the top of the DevOps Projects dashboard, select **Build Pipelines**. |
89 |
| - This link opens a browser tab and the build pipeline for your new project. |
| 77 | +1. At the top of the DevOps Starter dashboard, select **Build Pipelines**. This link opens a browser tab and the build pipeline for your new project. |
90 | 78 |
|
91 |
| -1. Point to the **Status** field, and then select the **ellipsis** (...). |
92 |
| - A menu displays several options, such as queuing a new build, pausing a build, and editing the build pipeline. |
| 79 | +1. Point to the **Status** field, and then select the **ellipsis** (...). A menu displays several options, such as queuing a new build, pausing a build, and editing the build pipeline. |
93 | 80 |
|
94 | 81 | 1. Select **Edit**.
|
95 | 82 |
|
96 |
| -1. In this pane, you can examine the various tasks for your build pipeline. |
97 |
| - The build runs a variety of tasks, such as fetching sources from the Git repository, restoring dependencies, and publishing outputs that are used for deployments. |
| 83 | +1. In this pane, you can examine the various tasks for your build pipeline. The build runs a variety of tasks, such as fetching sources from the Git repository, restoring dependencies, and publishing outputs that are used for deployments. |
98 | 84 |
|
99 | 85 | 1. At the top of the build pipeline, select the build pipeline name.
|
100 | 86 |
|
101 | 87 | 1. Change the name of your build pipeline to something more descriptive, select, **Save & queue**, and then select **Save**.
|
102 | 88 |
|
103 |
| -1. Under your build pipeline name, select **History**. |
104 |
| - The **History** pane displays an audit trail of your recent changes for the build. Azure Pipelines keeps track of any changes that are made to the build pipeline, and it allows you to compare versions. |
| 89 | +1. Under your build pipeline name, select **History**. The **History** pane displays an audit trail of your recent changes for the build. Azure Pipelines keeps track of any changes that are made to the build pipeline, and it allows you to compare versions. |
105 | 90 |
|
106 |
| -1. Select **Triggers**. |
107 |
| - DevOps Projects automatically created a CI trigger, and every commit to the repository starts a new build. You can optionally choose to include or exclude branches from the CI process. |
| 91 | +1. Select **Triggers**. DevOps Starter automatically created a CI trigger, and every commit to the repository starts a new build. You can optionally choose to include or exclude branches from the CI process. |
108 | 92 |
|
109 |
| -1. Select **Retention**. |
110 |
| - Depending on your scenario, you can specify policies to keep or remove a certain number of builds. |
| 93 | +1. Select **Retention**. Depending on your scenario, you can specify policies to keep or remove a certain number of builds. |
111 | 94 |
|
112 |
| -1. Select **Build and Release**, and then select **Releases**. |
113 |
| - DevOps Projects creates a release pipeline to manage deployments to Azure. |
| 95 | +1. Select **Build and Release**, and then select **Releases**. DevOps Starter creates a release pipeline to manage deployments to Azure. |
114 | 96 |
|
115 |
| -1. Select the ellipsis (...) next to your release pipeline, and then select **Edit**. |
116 |
| - The release pipeline contains a pipeline, which defines the release process. |
| 97 | +1. Select the ellipsis (...) next to your release pipeline, and then select **Edit**. The release pipeline contains a pipeline, which defines the release process. |
117 | 98 |
|
118 |
| -12. Under **Artifacts**, select **Drop**. |
119 |
| - The build pipeline you examined in the previous steps produces the output that's used for the artifact. |
| 99 | +12. Under **Artifacts**, select **Drop**. The build pipeline you examined in the previous steps produces the output that's used for the artifact. |
120 | 100 |
|
121 |
| -1. Next to the **Drop** icon, select the **Continuous deployment trigger**. |
122 |
| - This release pipeline has an enabled CD trigger, which runs a deployment every time there's a new build artifact available. Optionally, you can disable the trigger so that your deployments require manual execution. |
| 101 | +1. Next to the **Drop** icon, select the **Continuous deployment trigger**. This release pipeline has an enabled CD trigger, which runs a deployment every time there's a new build artifact available. Optionally, you can disable the trigger so that your deployments require manual execution. |
123 | 102 |
|
124 |
| -1. On the left, select **Tasks**. |
125 |
| - The tasks are the activities that your deployment process performs. In this example, a task was created to deploy to Azure App Service. |
| 103 | +1. On the left, select **Tasks**. The tasks are the activities that your deployment process performs. In this example, a task was created to deploy to Azure App Service. |
126 | 104 |
|
127 | 105 | 1. On the right, select **View releases** to display a history of releases.
|
128 | 106 |
|
129 |
| -1. Select the ellipsis (...) next to one of your releases, and then select **Open**. |
130 |
| - There are several menus to explore from this view such as a release summary, associated work items, and tests. |
| 107 | +1. Select the ellipsis (...) next to one of your releases, and then select **Open**. There are several menus to explore from this view such as a release summary, associated work items, and tests. |
131 | 108 |
|
132 |
| -1. Select **Commits**. |
133 |
| - This view shows code commits that are associated with the specific deployment. |
| 109 | +1. Select **Commits**. This view shows code commits that are associated with the specific deployment. |
134 | 110 |
|
135 |
| -1. Select **Logs**. |
136 |
| - The logs contain useful information about the deployment process. They can be viewed both during and after deployments. |
| 111 | +1. Select **Logs**. The logs contain useful information about the deployment process. They can be viewed both during and after deployments. |
137 | 112 |
|
138 | 113 | ## Clean up resources
|
139 | 114 |
|
140 |
| -You can delete Azure App Service and other related resources when you don't need them anymore. Use the **Delete** functionality on the DevOps Projects dashboard. |
| 115 | +You can delete Azure App Service and other related resources when you don't need them anymore. Use the **Delete** functionality on the DevOps Starter dashboard. |
141 | 116 |
|
142 | 117 | ## Next steps
|
143 | 118 |
|
|
0 commit comments