Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
@@ -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>
Original file line number Diff line number Diff line change
@@ -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>
52 changes: 52 additions & 0 deletions .harness/pipelines/go-pipeline-sample-1699258640798.yaml
Original file line number Diff line number Diff line change
@@ -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: ""