← azuredeploy

git harness pipeline

c9ad4d84da4c8fc4610f7113e55a46910f2d6209 · ovidiucs · Jun 24, 2024 17:17

+58 · 1 file changed

  • harness/pipeline/container_pipeline.yml +58 −0
diff --git a/harness/pipeline/container_pipeline.yml b/harness/pipeline/container_pipeline.yml
new file mode 100644
index 0000000..135a672
--- /dev/null
+++ b/harness/pipeline/container_pipeline.yml
@@ -0,0 +1,58 @@
+pipeline:
+  name: container_pipeline
+  identifier: container_rolling_pipeline
+  projectIdentifier: default_project
+  orgIdentifier: default
+  tags: {}
+  stages:
+    - stage:
+        name: deploy-container
+        identifier: deploycontainer
+        description: ""
+        type: Deployment
+        spec:
+          deploymentType: Kubernetes
+          service:
+            serviceRef: harness_deploy_container
+            serviceInputs:
+              serviceDefinition:
+                type: Kubernetes
+                spec:
+                  artifacts:
+                    primary:
+                      type: Acr
+                      spec:
+                        tag: <+input>
+          environment:
+            environmentRef: test
+            deployToAll: false
+            infrastructureDefinitions:
+              - identifier: harness_k8sinfra
+          execution:
+            steps:
+              - step:
+                  name: Rollout Deployment
+                  identifier: rolloutDeployment
+                  type: K8sRollingDeploy
+                  timeout: 10m
+                  spec:
+                    skipDryRun: false
+                    pruningEnabled: false
+                    delegateSelectors:
+                      - kubernetes-delegate
+            rollbackSteps:
+              - step:
+                  name: Rollback Rollout Deployment
+                  identifier: rollbackRolloutDeployment
+                  type: K8sRollingRollback
+                  timeout: 10m
+                  spec:
+                    pruningEnabled: false
+        tags: {}
+        failureStrategies:
+          - onFailure:
+              errors:
+                - AllErrors
+              action:
+                type: StageRollback
+