Skip to content

Testing trigger #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
inputSet:
name: Build_testgo_1738062830911-pr-trigger-input-set
identifier: Build_testgo_1738062830911prtriggerinputset
orgIdentifier: default
projectIdentifier: ebtasamDevTest
pipeline:
identifier: Build_testgo_1738062830911
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_testgo_1738062830911-push-trigger-input-set
identifier: Build_testgo_1738062830911pushtriggerinputset
orgIdentifier: default
projectIdentifier: ebtasamDevTest
pipeline:
identifier: Build_testgo_1738062830911
properties:
ci:
codebase:
build:
type: branch
spec:
branch: <+trigger.branch>
54 changes: 54 additions & 0 deletions .harness/pipelines/testgo-1738062826558.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
pipeline:
identifier: Build_testgo_1738062830911
name: Build testgo
orgIdentifier: default
projectIdentifier: ebtasamDevTest
properties:
ci:
codebase:
build: <+input>
connectorRef: account.DhirajGithubv2
repoName: testgo
stages:
- stage:
identifier: build
name: build
spec:
caching:
enabled: true
cloneCodebase: true
execution:
steps:
- step:
identifier: gobuild
name: go_build
spec:
connectorRef: account.harnessImage
image: alpine
shell: Sh
command: |-
echo "FROM alpine:latest" >> Dockerfile
cat Dockerfile
timeout: ""
type: Run
- step:
identifier: dockerbuild
name: docker_build
spec:
caching: true
connectorRef: <+input>
repo: hello/world
tags:
- latest
timeout: ""
type: BuildAndPushDockerRegistry
infrastructure:
type: KubernetesDirect
spec:
connectorRef: pod_test_name
namespace: default
automountServiceAccountToken: true
nodeSelector: {}
os: Linux
type: CI
description: ""
1 change: 1 addition & 0 deletions temp.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
asdasdfasfafafaasdasdasd