diff --git a/.harness/Build_go_pipeline_sample_1699258651304-pr-trigger-input-set-1699258652300.yaml b/.harness/Build_go_pipeline_sample_1699258651304-pr-trigger-input-set-1699258652300.yaml new file mode 100644 index 0000000..e2d74b8 --- /dev/null +++ b/.harness/Build_go_pipeline_sample_1699258651304-pr-trigger-input-set-1699258652300.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_go_pipeline_sample_1699258651304-pr-trigger-input-set + identifier: Build_go_pipeline_sample_1699258651304prtriggerinputset + orgIdentifier: default + projectIdentifier: project3 + pipeline: + identifier: Build_go_pipeline_sample_1699258651304 + properties: + ci: + codebase: + build: + type: PR + spec: + number: <+trigger.prNumber> diff --git a/.harness/Build_go_pipeline_sample_1699258651304-push-trigger-input-set-1699258653556.yaml b/.harness/Build_go_pipeline_sample_1699258651304-push-trigger-input-set-1699258653556.yaml new file mode 100644 index 0000000..3df8adb --- /dev/null +++ b/.harness/Build_go_pipeline_sample_1699258651304-push-trigger-input-set-1699258653556.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_go_pipeline_sample_1699258651304-push-trigger-input-set + identifier: Build_go_pipeline_sample_1699258651304pushtriggerinputset + orgIdentifier: default + projectIdentifier: project3 + pipeline: + identifier: Build_go_pipeline_sample_1699258651304 + properties: + ci: + codebase: + build: + type: branch + spec: + branch: <+trigger.branch> diff --git a/.harness/pipelines/go-pipeline-sample-1699258640798.yaml b/.harness/pipelines/go-pipeline-sample-1699258640798.yaml new file mode 100644 index 0000000..581b451 --- /dev/null +++ b/.harness/pipelines/go-pipeline-sample-1699258640798.yaml @@ -0,0 +1,52 @@ +pipeline: + identifier: Build_go_pipeline_sample_1699258651304 + name: Build go-pipeline-sample + orgIdentifier: default + projectIdentifier: project3 + properties: + ci: + codebase: + build: <+input> + connectorRef: account.Github_OAuth_1699258630140 + repoName: go-pipeline-sample + stages: + - stage: + identifier: build + name: build + spec: + cloneCodebase: true + execution: + steps: + - step: + identifier: gobuild + name: go_build + spec: + command: go build + timeout: "" + type: Run + - step: + identifier: gotest + name: go_test + spec: + command: go test -v ./... + timeout: "" + type: Run + - step: + identifier: dockerbuild + name: docker_build + spec: + image: plugins/docker + settings: + dry_run: "true" + repo: hello/world + tags: latest + timeout: "" + type: Plugin + platform: + os: Linux + arch: Amd64 + runtime: + type: Cloud + spec: {} + type: CI + description: ""