You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: umbraco-cloud/set-up/project-settings/umbraco-cicd/samplecicdpipeline/azure-devops.md
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,14 @@ Before setting up the pipeline in Azure DevOps, make sure that the following ste
13
13
14
14
Next, you will need to define your pipeline in YAML and use it to interact with the Umbraco Cloud API.
15
15
16
+
{% hint style="info" %}
17
+
Are you using version 1? Follow the [guide for Azure DevOps v1 instead](azure-devops-v1.md).
18
+
{% endhint %}
19
+
16
20
{% hint style="info" %}
17
21
The Umbraco CI/CD Team has created a sample pipeline for Azure DevOps.
18
22
19
-
The Scripts are provided as is. This means that the scripts will do the bare minimum for a pipeline that is utilizing the CI/CD flow. 
23
+
The Scripts are provided as is. This means that the scripts will do the bare minimum for a pipeline that is utilizing the CI/CD flow.
20
24
21
25
You'll need to adapt and integrate the script into your own pipelines to gain the ability to do deployments to your Umbraco Cloud projects.
22
26
@@ -174,7 +178,7 @@ It is recommended to handle the `API Key` as a secret. This can be done by ticki
174
178
You can customize the names for the variables as you like, however, you then need to rename the affected variables in `azure-release-pipeline.yaml`.
175
179
176
180
Check the references to the variables in the yaml files match the variable syntaxes in the created variable. Example: `umbracoCloudApiKey` = `UMBRACOCLOUDAPIKEY`.
177
-
{% endhint %}
181
+
{% endhint %}
178
182
179
183
When you click on "Save and Run" your first deployment will be triggered. Which means that Azure DevOps is set up with all the needed information to be able to deploy your Cloud project back to Umbraco Cloud.
180
184
@@ -191,7 +195,7 @@ While working on your project locally, add a new Document type.
191
195
192
196
## High level overview of the pipeline components
193
197
194
-
The mentioned scripts are provided as a starting point.
198
+
The mentioned scripts are provided as a starting point.\
195
199
It is recommended that you familiarize yourself with the scripts and with documentation related to how to use Azure DevOps.
196
200
197
201
The scripts demonstrates the following:
@@ -206,7 +210,7 @@ The `azure-release-pipeline.yaml` is the main pipeline, and is the one that will
206
210
207
211
You can add your Build and Test stage between the `cloudSyncStage` and `cloudPrepareArtifact` stages. Keep in mind that you do not need to retain the dotnet build artifact for upload later. The `cloudPrepareArtifact` job will take care of packaging all your source code and upload to Umbraco Cloud.
208
212
209
-
Make sure that you checkout the potentially updated code if you add Build and Test steps.
213
+
Make sure that you checkout the potentially updated code if you add Build and Test steps.
210
214
211
215
### Cloud-sync
212
216
@@ -216,7 +220,7 @@ If you don't want the pipeline to commit back to the triggering branch, this is
216
220
217
221
### Cloud-artifact
218
222
219
-
The `cloud-artifact.yml` shows how you can prepare and package an artifact and finally upload it to Umbraco Cloud.
223
+
The `cloud-artifact.yml` shows how you can prepare and package an artifact and finally upload it to Umbraco Cloud.
Copy file name to clipboardExpand all lines: umbraco-cloud/set-up/project-settings/umbraco-cicd/samplecicdpipeline/github-actions.md
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,14 @@ Before setting up the pipeline in GitHub, make sure that the following steps fro
13
13
14
14
Next, you will need to define your pipeline in YAML and use it to interact with the Umbraco Cloud API.
15
15
16
+
{% hint style="info" %}
17
+
Are you using version 1? Follow the [guide for GitHub Actions version 1](github-actions-v1.md).
18
+
{% endhint %}
19
+
16
20
{% hint style="info" %}
17
21
The Umbraco CI/CD Team has created a sample pipeline for GitHub Actions.
18
22
19
-
The Scripts are provided as is. This means that the scripts will do the bare minimum for a pipeline that is utilizing the CI/CD flow. 
23
+
The Scripts are provided as is. This means that the scripts will do the bare minimum for a pipeline that is utilizing the CI/CD flow.
20
24
21
25
You'll need to adapt and integrate the script into your own pipelines to gain the ability to do deployments to your Umbraco Cloud projects.
22
26
@@ -75,6 +79,7 @@ You will also need the alias of the environment you want to target. [This articl
75
79
* Create another `repository secret` with the name `PROJECT_ID` and the `Project ID` value from the Umbraco Portal.
76
80
77
81
Now go to the **Variables** tab
82
+
78
83
* Create a `repository variable` called `TARGET_ENVIRONMENT_ALIAS` and enter the environment alias you selected earlier.
79
84
80
85
{% hint style="info" %}
@@ -104,7 +109,7 @@ jobs:
104
109
umbracoCloudApiKey: ${{ secrets.UMBRACO_CLOUD_API_KEY }} # change the part inside the curly braces
105
110
with:
106
111
targetEnvironmentAlias: ${{ vars.TARGET_ENVIRONMENT_ALIAS }} # change the part inside the curly braces
107
-
```
112
+
```
108
113
{% endhint %}
109
114
110
115
Now GitHub is set up with the needed information to be able to run a deployment back to Umbraco Cloud.
@@ -220,7 +225,7 @@ While working on your project locally, add a new Document type.
220
225
221
226
## High level overview of the pipeline components
222
227
223
-
The mentioned scripts are provided as a starting point.
228
+
The mentioned scripts are provided as a starting point.\
224
229
It is recommended that you familiarize yourself with the scripts and with documentation related to how to use GitHub Actions.
225
230
226
231
The scripts demonstrates the following:
@@ -235,7 +240,7 @@ The `main.yml` is the main pipeline, and is the one that will be triggered on a
235
240
236
241
You can add your Build and Test jobs between the `cloud-sync` and `cloud-artifact` jobs. Keep in mind that you do not need to retain the dotnet build artifact for upload later. The `cloud-artifact` job will take care of packaging all your source code and upload to Umbraco Cloud.
237
242
238
-
Make sure that you checkout the potentially updated code if you add Build and Test steps.
243
+
Make sure that you checkout the potentially updated code if you add Build and Test steps.
239
244
240
245
### Cloud-sync
241
246
@@ -245,7 +250,7 @@ If you don't want the pipeline to commit back to the triggering branch, this is
245
250
246
251
### Cloud-artifact
247
252
248
-
The `cloud-artifact.yml` shows how you can prepare and package an artifact and finally upload it to Umbraco Cloud.
253
+
The `cloud-artifact.yml` shows how you can prepare and package an artifact and finally upload it to Umbraco Cloud.
0 commit comments