From a409a62eb895a484d16b1e764daad24d3423970a Mon Sep 17 00:00:00 2001 From: Tiffany Kyi Date: Fri, 3 Nov 2017 14:44:16 -0700 Subject: [PATCH 1/3] fix(770): Update configuration doc with new workflow --- docs/user-guide/configuration/index.md | 34 +++++++++++++++--------- docs/user-guide/environment-variables.md | 4 +-- docs/user-guide/templates.md | 2 +- 3 files changed, 24 insertions(+), 16 deletions(-) diff --git a/docs/user-guide/configuration/index.md b/docs/user-guide/configuration/index.md index b9b70e53..d83bda56 100644 --- a/docs/user-guide/configuration/index.md +++ b/docs/user-guide/configuration/index.md @@ -18,10 +18,6 @@ You can access information about properties by hovering over the property name.
-workflow:
-    - publish
-    - deploy-west
-
 shared:
     environment:
     NODE_ENV: test
@@ -32,28 +28,44 @@ You can access information about properties by hovering over the property name.
     annotations:
     beta.screwdriver.cd/my-annotation: my-data
 jobs:
-    main:
+      main:
+        requires: [~pr, ~commit, ~sd@123:main]
         image: node:6
         steps:
     - init: npm install
     - test: npm test
     publish:
+    requires: main
     image: node:6
     steps:
         - publish: npm publish
     deploy-west:
+    requires: publish
     image: node:6
     environment:
         DEPLOY_ENV: west
     steps:
         - init: npm install
-        - publish: npm deploy
+        - deploy: npm deploy
+    deploy-east:
+    requires: publish
+    image: node:6
+    environment:
+        DEPLOY_ENV: east
+    steps:
+        - init: npm install
+        - deploy: npm deploy
+    finished:
+    requires: [deploy-west, deploy-east]
+    image: node:6
+    steps:
+        - echo: echo done
     ...
 
-