Skip to content

Commit 7569f13

Browse files
Merge pull request #9815 from circleci/DOCSS-1962-deploy-marker-update
add deploy name as required and remove linter rule thats broken
2 parents 6ef891d + 5c063fb commit 7569f13

File tree

2 files changed

+19
-105
lines changed

2 files changed

+19
-105
lines changed

docs/guides/modules/deploy/pages/configure-deploy-markers.adoc

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ This tutorial shows how to add a deploy marker step to your workflow config. Dep
77

88
== Introduction
99

10-
Deploy markers provide a lightweight way to log your deployments. If you install deploy markers, as described in this guide, you will also be able to use the xref:set-up-rollbacks.adoc[CircleCI rollback feature].
10+
Deploy markers provide a lightweight way to log your deployments. If you install deploy markers, as described in this guide, you will also be able to use the rollback feature. For more information on rollbacks, see the xref:set-up-rollbacks.adoc[Set up Rollbacks] guide.
1111

12-
For a full guide to CircleCI's deploys features and functionality, refer to the xref:deployment-overview.adoc[Deployment and deploy management] guide.
12+
For a full guide to CircleCI's deploys features and functionality, refer to the xref:deployment-overview.adoc[Deployment and Deploy Management] guide.
1313

1414
You can configure deploy markers as follows:
1515

@@ -43,6 +43,7 @@ CAUTION: We recommend configuring `circleci run release plan` and `circleci run
4343

4444
Add a `circleci run release plan` command to your deployment job. This tells CircleCI to plan a new deploy and show it in the link:https://app.circleci.com/deploys[Deploys UI] with `pending` status.
4545

46+
.Plan your deployment
4647
[,yml]
4748
----
4849
jobs:
@@ -73,16 +74,17 @@ Configuring `circleci run release plan` identifies the deployment you are planni
7374

7475
This section provides some options for setting the `target-version` parameter.
7576

76-
* One option is to use CircleCI's built-in environment variables. For example you could define the target version as follows:
77+
* One option is to use CircleCI's built-in environment variables. For example, define the target version as follows:
7778
+
79+
.Example of setting target version using CircleCI's built-in environment variables
7880
[,yml]
7981
----
8082
--target-version="1.0.${CIRCLE_BUILD_NUM}-${CIRCLE_SHA1:0:7}"
8183
----
8284
+
8385
This configuration would yield a value with the following format `1.0.28853-ffdbeb1`.
8486

85-
* Another option is to use pipeline values. For example you could define the target version as follows:
87+
* Another option is to use pipeline values. For example, define the target version as follows:
8688
+
8789
[,yml]
8890
----
@@ -93,24 +95,13 @@ This configuration would yield a value with the following format `12345`.
9395

9496
=== 1.2. Update the deploy status to running
9597

96-
WARNING: The `circleci run release update` command is only for use with deploy markers. If you are using the CircleCI xref:release-agent-overview.adoc[release agent] for Kubernetes deployments, do NOT use the `update` commands. The release agent automatically handles status updates for you.
98+
WARNING: The `circleci run release update` command is only for use with deploy markers. If you are using the CircleCI release agent for Kubernetes deployments, do NOT use the `update` commands. The release agent automatically handles status updates for you. See the xref:release-agent-overview.adoc[Release Agent Overview] page for more details.
9799

98100
After deploying your application, you can update the status of the deployment to `RUNNING` by running the `circleci run release update` command in a new step.
99101

100-
[,yml]
101-
----
102-
jobs:
103-
deploy-my-service:
104-
executor: some-executor
105-
steps:
106-
...
107-
(existing deployment commands)
108-
...
109-
- run: circleci run release update --status=running
110-
----
111-
112-
If you are deploying multiple components or to multiple environments from a single workflow, you need to provide the command with a deployment name. The deploy name value should match the value you provided when you planned the deploy.
102+
Remember to provide your deploy name when using the `update` commands. The deploy name value should match the value you provided when you planned the deploy. If you did not provide a deploy name when you planned the deploy, you can use the `default` value.
113103

104+
.Update the deploy status to running
114105
[,yml]
115106
----
116107
jobs:
@@ -139,7 +130,7 @@ jobs:
139130
- run:
140131
name: Update planned release to SUCCESS
141132
command: |
142-
circleci run release update \
133+
circleci run release update <deploy-name> \
143134
--status=SUCCESS
144135
when: on_success
145136
- run:
@@ -148,7 +139,7 @@ jobs:
148139
if [ -f failure_reason.env ]; then
149140
source failure_reason.env
150141
fi
151-
circleci run release update \
142+
circleci run release update <deploy-name> \
152143
--status=FAILED \
153144
--failure-reason="$FAILURE_REASON"
154145
when: on_fail
@@ -184,7 +175,7 @@ jobs:
184175
- run:
185176
name: Update planned release to CANCELED
186177
command: |
187-
circleci run release update \
178+
circleci run release update <deploy-name> \
188179
--status=CANCELED
189180
----
190181

@@ -228,14 +219,14 @@ jobs:
228219
command: <your-deployment-logic>
229220
- run:
230221
name: Update planned deployment to running
231-
command: circleci run release update --status=running
222+
command: circleci run release update <deploy-name> --status=running
232223
- run:
233224
name: Validate deployment
234225
command: <your-validation-logic>
235226
- run:
236227
name: Update planned deployment to SUCCESS
237228
command: |
238-
circleci run release update \
229+
circleci run release update <deploy-name> \
239230
--status=SUCCESS
240231
when: on_success
241232
- run:
@@ -244,7 +235,7 @@ jobs:
244235
if [ -f failure_reason.env ]; then
245236
source failure_reason.env
246237
fi
247-
circleci run release update \
238+
circleci run release update <deploy-name> \
248239
--status=FAILED \
249240
--failure-reason="$FAILURE_REASON"
250241
when: on_fail
@@ -254,7 +245,7 @@ jobs:
254245
- run:
255246
name: Update planned release to CANCELED
256247
command: |
257-
circleci run release update \
248+
circleci run release update <deploy-name> \
258249
--status=CANCELED
259250
workflows:
260251
deploy-workflow:
@@ -268,7 +259,7 @@ workflows:
268259

269260
== Deploy logs without status updates
270261

271-
Sometimes you might not want your deployment marker to have any specific status, but still want it to be logged in the deploys UI.
262+
Sometimes you might not want your deploy markers to have any specific status, but still want them to be logged in the deploys UI.
272263
In those cases you can use the `release log` command in place of `release plan` as shown in the example below.
273264

274265
[,yml]
@@ -326,7 +317,7 @@ You can also create an environment integration manually in the CircleCI web app.
326317
. Select the **Environments** tab.
327318
. Select btn:[Create Environment Integration].
328319
. Enter a name for your environment, and a description if you would like.
329-
. Use the dropdown menu to choose your environment integration type. Choose the "Custom" option to follow along with this guide,. If you are deploying to your Kubernetes cluster you can or if you want to use the CircleCI release agent, then choose "Kubernetes Cluster" and head over to the xref:set-up-circleci-deploys.adoc[Release agent setup] page.
320+
. Use the dropdown menu to choose your environment integration type. Choose the "Custom" option to follow along with this guide,. If you are deploying to your Kubernetes cluster you can or if you want to use the CircleCI release agent, then choose "Kubernetes Cluster" and head over to the xref:set-up-circleci-deploys.adoc[Set up the CircleCI Release Agent] page.
330321
. Select btn:[Save and Continue].
331322

332323
== Next steps
@@ -335,4 +326,4 @@ By following the steps in this guide, you have added a deploy marker to your Cir
335326
You can now track the status of your deployments across your configured environments in the CircleCI deploys UI and in the project home page.
336327
You can now:
337328

338-
* xref:set-up-rollbacks.adoc[Set up rollbacks].
329+
* xref:set-up-rollbacks.adoc[Set up Rollbacks].

styles/circleci-docs/CodeBlockTitles.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)