forked from tektoncd/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix referenced pipelineresource not existing anymore * Use a github-token to do github operation to don't get rate limited (since we have already one setup) * use v1beta1 Fixes 1171 Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
1 parent
2e5cc3a
commit a523382
Showing
4 changed files
with
36 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
--- | ||
apiVersion: tekton.dev/v1alpha1 | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: TaskRun | ||
metadata: | ||
name: rpmbuild-taskrun | ||
spec: | ||
taskRef: | ||
kind: Task | ||
name: rpmbuild | ||
inputs: | ||
resources: | ||
resources: | ||
inputs: | ||
- name: source | ||
resourceRef: | ||
name: tektoncd-cli-git | ||
params: | ||
- name: copr-cli-secret | ||
value: copr-cli-config | ||
resourceSpec: | ||
type: git | ||
params: | ||
- name: revision | ||
value: master | ||
- name: url | ||
value: https://github.com/tektoncd/cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,27 @@ | ||
--- | ||
apiVersion: tekton.dev/v1alpha1 | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: Task | ||
metadata: | ||
name: rpmbuild | ||
spec: | ||
inputs: | ||
params: | ||
- name: copr-cli-secret | ||
description: copr cli secret | ||
default: copr-cli-config | ||
- name: github-token-secret | ||
description: name of the secret holding the github-token | ||
default: github-token | ||
resources: | ||
- name: source | ||
type: git | ||
targetPath: src | ||
resources: | ||
inputs: | ||
- name: source | ||
type: git | ||
targetPath: src | ||
steps: | ||
- name: build-rpm | ||
env: | ||
- name: GITHUB_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
name: bot-token-github | ||
key: bot-token | ||
- name: COPR_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
name: copr-cli-config | ||
key: copr | ||
image: quay.io/chmouel/rpmbuild | ||
workingdir: /workspace/src | ||
command: ["tekton/rpmbuild/build.sh"] | ||
volumeMounts: | ||
- name: copr-cli-config | ||
mountPath: /var/secret/copr | ||
volumes: | ||
- name: copr-cli-config | ||
secret: | ||
secretName: "$(inputs.params.copr-cli-secret)" |