From 2729beed9ff0a151cfb39464d390eccfe806b95f Mon Sep 17 00:00:00 2001 From: Juto Yu Date: Sat, 21 Aug 2021 22:11:51 +0800 Subject: [PATCH] Add multiple golang version --- pipelines/multi-branch/template.yml | 1 + tasks/go-test.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pipelines/multi-branch/template.yml b/pipelines/multi-branch/template.yml index fe245cb..38cf36d 100644 --- a/pipelines/multi-branch/template.yml +++ b/pipelines/multi-branch/template.yml @@ -18,6 +18,7 @@ jobs: trigger: true - get: examples - task: unit + vars: ((golang)) file: examples/tasks/go-test.yml input_mapping: {repo: branch} params: {MODULE: apps/golang} diff --git a/tasks/go-test.yml b/tasks/go-test.yml index 2f8b24d..a928e2c 100644 --- a/tasks/go-test.yml +++ b/tasks/go-test.yml @@ -2,7 +2,7 @@ platform: linux image_resource: type: registry-image - source: { repository: golang } + source: { repository: golang:((golang))} inputs: - name: repo