forked from jfrog/jfrog-pipelines-go-sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipelines.yml
54 lines (48 loc) · 1.7 KB
/
pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# This config file is templatized so that it can be easily customized. Values can be provided with a values.yml at the root of this repository
template: true # required for local templates
valuesFilePath: ./values.yml
resources:
# Sample Go app in a GitRepo
- name: go_repo
type: GitRepo
configuration:
path: {{ .Values.repoPath }}
branches:
include: main
gitProvider: {{ .Values.gitProvider }}
# Build info for the published Go app
- name: go_buildinfo
type: BuildInfo
configuration:
sourceArtifactory: {{ .Values.artifactory }}
pipelines:
- name: go_build_pipeline_example
steps:
# Build the Go sample app from the GitRepo. Docs at https://www.jfrog.com/confluence/display/JFROG/GoBuild
- name: build_go
type: GoBuild
configuration:
sourceLocation: .
resolverRepo: go-virtual
noRegistry: true
inputResources:
- name: go_repo
integrations:
- name: {{ .Values.artifactory }}
# Publish the Go sample app binary to Artifactory. Docs at https://www.jfrog.com/confluence/display/JFROG/GoPublishBinary
- name: publish_go_binary
type: GoPublishBinary
configuration:
inputSteps:
- name: build_go
targetRepository: go-local
integrations:
- name: {{ .Values.artifactory }}
# Publish the Go sample app build info. Docs at https://www.jfrog.com/confluence/display/JFROG/PublishBuildInfo
- name: publish_build
type: PublishBuildInfo
configuration:
inputSteps:
- name: publish_go_binary
outputResources:
- name: go_buildinfo