You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

37 lines
693 B

resources:
- name: branch
type: git
source:
uri: https://github.com/jutkko/examples
branch: ((branch))
- name: examples
type: git
source:
uri: https://github.com/jutkko/examples
jobs:
- name: test
plan:
- in_parallel:
- get: branch
trigger: true
- get: examples
- task: unit
file: examples/tasks/go-test.yml
input_mapping: {repo: branch}
params: {MODULE: apps/golang}
- name: build
plan:
- in_parallel:
- get: branch
passed: [test]
trigger: true
- get: examples
- task: build
file: examples/tasks/go-build.yml
params:
MODULE: apps/golang
BINARY_NAME: my-app
input_mapping: {repo: branch}