Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
b167be5
cleanup
mailaenderli Mar 22, 2022
e85555a
add deployment yaml
mailaenderli Mar 23, 2022
87ab76d
fix typo
mailaenderli Mar 23, 2022
0ab43f1
fix
mailaenderli Mar 23, 2022
5c9fda4
fix image
mailaenderli Mar 23, 2022
878ad3b
fix port
mailaenderli Mar 23, 2022
136492a
fix container port
mailaenderli Mar 23, 2022
d8363ab
variable for image
mailaenderli Mar 23, 2022
d540e40
update values
mailaenderli Mar 23, 2022
432a9db
fix values
mailaenderli Mar 23, 2022
bd661ba
Update README.md
mailaenderli Mar 23, 2022
919da31
Update README.md
mailaenderli Mar 23, 2022
01e87c8
Update README.md
mailaenderli Mar 23, 2022
47195a2
Update README.md
mailaenderli Mar 23, 2022
01fd9ea
cleanup
mailaenderli Mar 23, 2022
17d5272
test
mailaenderli Mar 23, 2022
fc4d618
dd
mailaenderli Mar 23, 2022
74c4091
fff
mailaenderli Mar 23, 2022
1beb8b5
Harness Full Sync: Add file connectors/goHelloWorld.yaml
mailaenderli Mar 23, 2022
0651127
Harness Full Sync: Add file pipelines/CD_Pipeline.yaml
mailaenderli Mar 23, 2022
dc64507
Harness Full Sync: Add file pipelines/CI_Pipeline.yaml
mailaenderli Mar 23, 2022
4fd1044
Update pipeline CD Pipeline
mailaenderli Mar 23, 2022
e14a62d
Update pipeline CD Pipeline
mailaenderli Mar 23, 2022
8ea66ff
Update pipeline CD Pipeline
mailaenderli Mar 23, 2022
f666372
split values test prod
mailaenderli Mar 23, 2022
6dfc6dc
Merge branch 'main' of https://github.com/mailaenderli/goHelloWorldSe…
mailaenderli Mar 23, 2022
7b3d220
test
mailaenderli Mar 24, 2022
3d98080
Update pipeline CI Pipeline
mailaenderli Mar 24, 2022
16b075f
Update pipeline CI Pipeline
mailaenderli Mar 24, 2022
0818e68
Update pipeline CI Pipeline
mailaenderli Mar 24, 2022
d9441cb
add annotations
mailaenderli Mar 24, 2022
971bdc0
prefixify
mailaenderli Mar 24, 2022
ebfac42
Create pipeline CD Feature Branch
mailaenderli Mar 24, 2022
67ce8f8
new feature
mailaenderli Mar 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions .harness/CD_Feature_Branch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
pipeline:
name: CD Feature Branch
identifier: CD_Feature_Branch
allowStageExecutions: false
projectIdentifier: goHelloWorld
orgIdentifier: default
tags: {}
stages:
- stage:
name: deploy feature branch
identifier: deploy_feature_branch
description: ""
type: Deployment
spec:
serviceConfig:
serviceRef: goHelloWorld
serviceDefinition:
type: Kubernetes
spec:
variables: []
manifests:
- manifest:
identifier: deployment
type: K8sManifest
spec:
store:
type: Github
spec:
connectorRef: goHelloWorld
gitFetchType: Branch
paths:
- deployment.yaml
branch: main
skipResourceVersioning: false
- manifest:
identifier: ValuesFeatureBranch
type: Values
spec:
store:
type: Github
spec:
connectorRef: goHelloWorld
gitFetchType: Branch
paths:
- valuesFeatureBranch.yaml
branch: main
artifacts:
primary:
spec:
connectorRef: org.Docker_Hub
imagePath: rmailaender/gohelloworldserver
tag: <+input>
type: DockerRegistry
infrastructure:
environmentRef: Test
infrastructureDefinition:
type: KubernetesDirect
spec:
connectorRef: org.GKEdefault
namespace: goserver-featurebranch
releaseName: release-<+INFRA_KEY>
allowSimultaneousDeployments: false
execution:
steps:
- step:
name: Rollout Deployment
identifier: rolloutDeployment
type: K8sRollingDeploy
timeout: 10m
spec:
skipDryRun: false
rollbackSteps:
- step:
name: Rollback Rollout Deployment
identifier: rollbackRolloutDeployment
type: K8sRollingRollback
timeout: 10m
spec: {}
tags: {}
failureStrategies:
- onFailure:
errors:
- AllErrors
action:
type: StageRollback
22 changes: 22 additions & 0 deletions .harness/connectors/goHelloWorld.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
connector:
name: goHelloWorld
identifier: goHelloWorld
description:
orgIdentifier: default
projectIdentifier: goHelloWorld
type: Github
spec:
url: https://github.com/mailaenderli/goHelloWorldServer
authentication:
type: Http
spec:
type: UsernameToken
spec:
username: raphael.mailaender@gmail.com
tokenRef: githubtoken
apiAccess:
type: Token
spec:
tokenRef: githubtoken
executeOnDelegate: false
type: Repo
1 change: 0 additions & 1 deletion .harness/mypipeline.yaml

This file was deleted.

211 changes: 211 additions & 0 deletions .harness/pipelines/CD_Pipeline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,211 @@
pipeline:
name: CD Pipeline
identifier: CD_Pipeline
allowStageExecutions: false
projectIdentifier: goHelloWorld
orgIdentifier: default
tags: {}
stages:
- parallel:
- stage:
name: Deploy to test
identifier: Deploy_Service
description: ""
type: Deployment
spec:
serviceConfig:
serviceRef: goHelloWorld
serviceDefinition:
type: Kubernetes
spec:
variables: []
manifests:
- manifest:
identifier: GoDeployment
type: K8sManifest
spec:
store:
type: Github
spec:
connectorRef: goHelloWorld
gitFetchType: Branch
paths:
- deployment.yaml
branch: main
skipResourceVersioning: false
- manifest:
identifier: values
type: Values
spec:
store:
type: Github
spec:
connectorRef: goHelloWorld
gitFetchType: Branch
paths:
- valuesTest.yaml
branch: main
artifacts:
primary:
spec:
connectorRef: org.Docker_Hub
imagePath: rmailaender/gohelloworldserver
tag: <+input>
type: DockerRegistry
infrastructure:
environmentRef: Test
infrastructureDefinition:
type: KubernetesDirect
spec:
connectorRef: org.GKEdefault
namespace: goserver-test
releaseName: release-<+INFRA_KEY>
allowSimultaneousDeployments: false
execution:
steps:
- step:
type: K8sRollingDeploy
name: Deployment
identifier: Deployment
spec:
skipDryRun: false
timeout: 10m
failureStrategies: []
rollbackSteps: []
serviceDependencies: []
tags: {}
failureStrategies:
- onFailure:
errors:
- AllErrors
action:
type: StageRollback
variables: []
- stage:
name: Deploy to prod
identifier: Deploy_to_prod
description: ""
type: Deployment
spec:
serviceConfig:
useFromStage:
stage: Deploy_Service
stageOverrides:
artifacts:
sidecars: []
primary:
spec:
connectorRef: org.Docker_Hub
imagePath: rmailaender/gohelloworldserver
tag: <+input>
type: DockerRegistry
manifests:
- manifest:
identifier: GoDeployment
type: K8sManifest
spec:
store:
type: Github
spec:
connectorRef: goHelloWorld
gitFetchType: Branch
paths:
- deployment.yaml
branch: main
skipResourceVersioning: false
- manifest:
identifier: valuesProd
type: Values
spec:
store:
type: Github
spec:
connectorRef: goHelloWorld
gitFetchType: Branch
paths:
- valuesProd.yaml
branch: main
variables: []
infrastructure:
environmentRef: Test
infrastructureDefinition:
type: KubernetesDirect
spec:
connectorRef: org.GKEdefault
namespace: goserver-prod
releaseName: release-<+INFRA_KEY>
allowSimultaneousDeployments: false
execution:
steps:
- step:
type: HarnessApproval
name: Manual Approve
identifier: Manual_Approve
spec:
approvalMessage: Please review the following information and approve the pipeline progression
includePipelineExecutionHistory: true
approvers:
userGroups:
- account.GoHelloServerApprover
minimumCount: 1
disallowPipelineExecutor: false
approverInputs: []
timeout: 1d
failureStrategies: []
- stepGroup:
name: Canary Deployment
identifier: canaryDepoyment
steps:
- step:
name: Canary Deployment
identifier: canaryDeployment
type: K8sCanaryDeploy
timeout: 10m
spec:
instanceSelection:
type: Count
spec:
count: 1
skipDryRun: false
- step:
name: Canary Delete
identifier: canaryDelete
type: K8sCanaryDelete
timeout: 10m
spec: {}
rollbackSteps:
- step:
name: Canary Delete
identifier: rollbackCanaryDelete
type: K8sCanaryDelete
timeout: 10m
spec: {}
- stepGroup:
name: Primary Deployment
identifier: primaryDepoyment
steps:
- step:
name: Rolling Deployment
identifier: rollingDeployment
type: K8sRollingDeploy
timeout: 10m
spec:
skipDryRun: false
failureStrategies: []
rollbackSteps:
- step:
name: Rolling Rollback
identifier: rollingRollback
type: K8sRollingRollback
timeout: 10m
spec: {}
rollbackSteps: []
serviceDependencies: []
tags: {}
failureStrategies:
- onFailure:
errors:
- AllErrors
action:
type: StageRollback
variables: []
Loading