Skip to content

Commit

Permalink
Update templating to use $(…) instead of ${…}
Browse files Browse the repository at this point in the history
Starting from 0.7.0, the later is not supported anymore.

Signed-off-by: Chmouel Boudjnah <[email protected]>
  • Loading branch information
chmouel authored and tekton-robot committed Sep 26, 2019
1 parent 93fc8c7 commit 0cf2aef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions tekton/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,31 @@ spec:
resources:
- name: source
type: git
targetPath: src/${inputs.params.package}
targetPath: src/$(inputs.params.package)
steps:
- name: pull
image: goreleaser/goreleaser
workingdir: /workspace/src/${inputs.params.package}
workingdir: /workspace/src/$(inputs.params.package)
command:
- /bin/bash
args:
- -c
- "git status; git fetch -p --all"
- name: release
image: goreleaser/goreleaser
workingdir: /workspace/src/${inputs.params.package}
workingdir: /workspace/src/$(inputs.params.package)
command:
- /bin/bash
args:
- -c
- "goreleaser release ${inputs.params.flags}"
- "goreleaser release $(inputs.params.flags)"
env:
- name: GOPATH
value: /workspace
- name: GITHUB_TOKEN
valueFrom:
secretKeyRef:
# FIXME(vdemeester): this need to be fixed upstream, template should work there
#name: ${inputs.params.github-token-secret}
#name: $(inputs.params.github-token-secret)
name: bot-token-github
key: bot-token
10 changes: 5 additions & 5 deletions tekton/release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
name: golangci-lint
params:
- name: package
value: ${params.package}
value: $(params.package)
- name: flags
value: -v
resources:
Expand All @@ -34,7 +34,7 @@ spec:
name: golang-test
params:
- name: package
value: ${params.package}
value: $(params.package)
resources:
inputs:
- name: source
Expand All @@ -45,7 +45,7 @@ spec:
name: golang-build
params:
- name: package
value: ${params.package}
value: $(params.package)
resources:
inputs:
- name: source
Expand All @@ -56,9 +56,9 @@ spec:
name: goreleaser
params:
- name: package
value: ${params.package}
value: $(params.package)
- name: github-token-secret
value: ${params.github-token-secret}
value: $(params.github-token-secret)
resources:
inputs:
- name: source
Expand Down

0 comments on commit 0cf2aef

Please sign in to comment.