+5
-6
@@ -1,7 +1,6 @@
|
|||||||
version: v0
|
version: v0
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
- name: agola go example
|
- name: agola go example
|
||||||
tasks:
|
tasks:
|
||||||
- name: build go 1.12
|
- name: build go 1.12
|
||||||
runtime:
|
runtime:
|
||||||
@@ -17,12 +16,12 @@ runs:
|
|||||||
- cache-date-
|
- cache-date-
|
||||||
## golang image sets GOPATH to /go
|
## golang image sets GOPATH to /go
|
||||||
dest_dir: /go/pkg/mod/cache
|
dest_dir: /go/pkg/mod/cache
|
||||||
## This will create a binary called `agola-example-go` under ./bin
|
- ## This will create a binary called `agola-example-go` under ./bin
|
||||||
- run:
|
run:
|
||||||
name: build the program
|
name: build the program
|
||||||
command: go build .
|
command: go build .
|
||||||
## Copy the built binary to the workspace
|
- ## Copy the built binary to the workspace
|
||||||
- save_to_workspace:
|
save_to_workspace:
|
||||||
contents:
|
contents:
|
||||||
- source_dir: .
|
- source_dir: .
|
||||||
dest_dir: /bin/
|
dest_dir: /bin/
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
# Agola Go example
|
# Agola Go example
|
||||||
|
|
||||||
|
|
||||||
|
stuff
|
||||||
|
|
||||||
This is just a simple example to test an agola run that'll build a simple go program using a matrix build (multiple Go versions and optionally multiple architectures)
|
This is just a simple example to test an agola run that'll build a simple go program using a matrix build (multiple Go versions and optionally multiple architectures)
|
||||||
|
|
||||||
It uses the jsonnet config format. There's also a (less powerful) yaml config file (to try it delete the jsonnet config since it takes precedence)
|
It uses the jsonnet config format. There's also a (less powerful) yaml config file (to try it delete the jsonnet config since it takes precedence)
|
||||||
|
|||||||
Reference in New Issue
Block a user