1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-28 06:30:40 +00:00
Commit Graph

854 Commits

Author SHA1 Message Date
Jorge Andrada Prieto
27472bf750 Add asciidoctor Task
Asciidoctor text processor task
2022-01-13 15:36:04 +00:00
Ruben van Kruistum
04e1310fec Remove quotes from args param in pytest script
The quotation marks are breaking the proper execution of args
2022-01-13 12:46:03 +00:00
Frerik Andriessen
578e1b9fe7 Add Basic Auth option to github-add-comment 2022-01-12 15:12:02 +00:00
Frerik Andriessen
69781086c8 Make yq task fail if one of the replacements fails 2022-01-12 06:10:02 +00:00
Frerik Andriessen
25d9a7669c Add image param to yq task 2022-01-12 06:10:02 +00:00
Jorge Andrada Prieto
83c2016c6a Fix Readme hadolint task 0.1
Fix Readme hadolint task 0.1, no compatible tags with tekton catalog web
2022-01-10 09:13:01 +00:00
Jorge Andrada Prieto
837a8f6ece Add hadolint task
Dockerfile linter task


fix shellcheck


test lint


fix SC2155


fix SC2155


add set -e


fix SC2155


ignore rule value


fix test


fix empty lines


Clean code and digest image

Resolved @vinamra28 suggestions
Digest and image tag
2022-01-08 06:45:01 +00:00
Scott
ae02f26988 Fix small issue with gcs-download README
Prior to this commit an example in the readme for gcs-download
referenced a Task that didn't exist.

This commit updates the broken taskRef to point to the correctly
named Task.
2022-01-06 10:23:00 +00:00
Guillaume
77b3f9a16b Smaller default image for github-set-status
The default image for the github-set-status is more
than 800MB. The python code actually run in this task
is small and used only the stdlib. A smaller image
would works just as well.

The new default is python-alpine (45MB), which is the
smallest python image possible. It is now configurable.
2022-01-06 10:15:00 +00:00
Jörg Heyduk
a5a1fe17be Correct quoting in sample file
Correct the quoting in the patch. Now the variables are included
in the patch.

Fixes #887
2022-01-06 07:04:00 +00:00
ec2ainun
4f365ec668 feat: discord messaging
Update task/send-to-webhook-discord/0.1/README.md

Co-authored-by: Vinamra Jain <vinjain@redhat.com>

Update task/send-to-webhook-discord/0.1/README.md

Co-authored-by: Vinamra Jain <vinjain@redhat.com>

fix: trailing spaces

fix: add default message and avatar

Update task/send-to-webhook-discord/0.1/send-to-webhook-discord.yaml

Update task/send-to-webhook-discord/0.1/README.md
2021-12-21 11:26:55 +00:00
Chris
a768679711 Added comments reguarding id_rsa as default filename for private key 2021-12-20 17:05:55 +00:00
Ameya Lokare
ea4fa15b5f Don't omit params.context in source path construction
Looks like the `context` param is never used in 0.2 which fails builds that don't have the golang sources at the workspace root. Seems like a regression from 0.1.
2021-12-20 16:49:55 +00:00
jacco.mook@alliander.com
c4629f15ca Add extra golang-build env parameters 2021-12-14 15:26:54 +00:00
Yulia Gaponenko
cebb548d56 Add DOCKER_CONFIG env variable to jib-gradle
Specification of Docker config location allows to point jib tool to the
Docker config file with registry auth information, provided by Tekton
via
https://github.com/tektoncd/pipeline/blob/main/docs/auth.md#configuring-docker-authentication-for-docker .

Without this fix jib is not able to find credentialss for private registries or
registries will limited pulls and build fails.

Fix is provided for all 3 existing versions of the task.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-12-08 12:15:52 +00:00
Sim Zacks
ec66862871 remove blanks from receivers_email
The recipients of the email are extracted from a variable using the
split() function on a blank space (' '). If there are additional blanks,
either before, after or in the middle of the receivers_email variable the
sendmail function will cause an exception. This patch makes sure that blanks
won't cause the exception.
2021-12-07 10:32:51 +00:00
Chmouel Boudjnah
03344fec88 bump goreleaser to latest
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-12-03 16:18:50 +00:00
rvankruistum
020efea5dd Add new jib-gradle version with optional arguments
Update task/jib-gradle/0.3/README.md

Co-authored-by: Vinamra Jain <vinjain@redhat.com>

Update task/jib-gradle/0.3/jib-gradle.yaml

Co-authored-by: Vinamra Jain <vinjain@redhat.com>

Fix linting errors

Fix more linting errors
2021-11-25 14:00:46 +00:00
Piyush Garg
6a6f3543fa Directory not handled in digest-to-results step
This will fix the issue of jib-maven task not passing digest to results
if the clone has happened in sub-directory and directory passed to
jib-maven task

It is because the directory param is not handled in path creation for digest

It will not break the existing the behaviour but fixing the issue for directory scenario
so doing the change in latest version
2021-11-22 09:09:45 +00:00
rvankruistum
df2232761a add optional flag to ecr-login workspace 2021-11-19 12:43:44 +00:00
Andrea Frittoli
367c3c1eea [pytest] Fix issue when no args are passed
When no args are passed, we run pytest "" <path> which does not
work as expected. Only pass the args to pytest when there are
some defined.

Fixes #864

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
2021-11-19 12:24:44 +00:00
Chmouel Boudjnah
1a238ce7a6 Update contribution guide on how to bump a task/pipeline
Update contributiong guide with guidance on  how to bump a task and pipeline
make it easy for reviewers and have a clean git log.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-11-17 16:31:44 +00:00
Chmouel Boudjnah
6896d86524 git-clone: support mounting custom CAs for https
Add a optional workspace for custom CAs. This will use pass down the optional
workspace path to git's GIT_SSL_CAPATH env variable (and subsequently to
libcurl).

Closes #660

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-11-17 13:41:43 +00:00
Chmouel Boudjnah
40fde9ae46 Copy git-clone version from 0.4 to 0.5
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-11-17 13:41:43 +00:00
Piyush Garg
0ca41d373d Add home env to kn-apply task
This will add home env with value /tekton/home to the kn-apply task
as it throws warning sometime like

2021/11/03 12:18:36 warning: unsuccessful cred copy: .docker from
/tekton/creds to /: unable to create destination directory:
mkdir /.docker: permission denied

This env does not break the task so adding it in same version
2021-11-17 12:08:44 +00:00
Tobias Larscheid
cffffa1d27 add additional test for skip logic 2021-11-17 11:36:43 +00:00
Tobias Larscheid
b377e32fa2 Quote param as suggested by static analysis
Co-authored-by: Chmouel Boudjnah <chmouel@chmouel.com>
2021-11-17 11:36:43 +00:00
Tobias Larscheid
ac3458c946 add param to allow skipping push step 2021-11-17 11:36:43 +00:00
Yulia Gaponenko
0716b24508 Add platforms annotation to pylint 0.1 task
Annotation about linux/amd64, linux/s390x, linux/arm64 and linux/ppc64le
platforms is added to the 0.1 version of the pylint task.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-11-17 10:26:44 +00:00
Christoffer Vig
d3222e8a89 fix: https://github.com/tektoncd/catalog/issues/768
makes sonar-project.properties editable when mounted from secret
2021-11-12 16:14:42 +00:00
Yulia Gaponenko
cab0b76389 Extend catalog test script to run test for different platforms
PLATFORM env variable is introduced. This variable allows to run
tests for specific platform (for insance, "linux/s390x" or "linux/ppc64le").
If the environment variable is specified
- some tests are updated with different image values/other parameter
values, required for specific platform, using yq tool.
Custom values should be specified in the script file, separate for each
platform. In the current code script file for linux/s390x is proposed.
- only tasks, which have mention about corresponding platform support
in the annotation, will be tested.
If PLATFORM env variale is no specified, the behaviour of test scripts
will be similar to the one before the PR.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-11-12 04:38:42 +00:00
于志鹏
9d7ca7e04a delete extra characters in roadmap.md file 2021-11-05 03:01:40 +00:00
Frerik Andriessen
a771c5cefc Make diff-task handle code blocks
Github markdown allows using 4 (or more) backticks to differentiate
between triple backticks inside the code blocks. Seeing as how most
task-diffs will probably have some form of markdown with codeblocks
inside them, this will escape that.
2021-11-02 13:15:38 +00:00
Yulia Gaponenko
f4708d478e Add linux/amd64 platform annotation to the rest of the tasks
At this moment all tasks which can be executed on linux/s390x or
linux/ppc64le are tested and labelled accordingly.
The rest of the tasks can be labelled as `linux/amd64`, which
is default platform and where tasks are already tested via
default PR testing cycle.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-10-29 17:08:38 +01:00
Yulia Gaponenko
f8b0e19da8 Add platforms annotation to several tasks
Annotation about linux/amd64,linux/s390x,linux/ppc64le and linux/arm64
platforms was added to the latest versions of curl, kn, kn-apply,
sendmail, and generate-build-id tasks.

Annotation about linux/amd64,linux/s390x,linux/ppc64le
platforms was added to the latest version of jib-gradle task.

For several tasks shas of the images were changed from amd64 specific
ones to multi-arch ones.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-10-28 10:17:37 +01:00
Yulia Gaponenko
22983dbc28 Change platforms annotation to git-* tasks
Annotation about linux/amd64, linux/s390x, and linux/ppc64le platforms
was added to the latest versions of the git-batch-merge,
git-clone, git-rebase tasks.

Platforms annotation was changed for git-version task, leaving only
linux/amd64.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-10-27 16:13:36 +01:00
rvankruistum
03dd5e48ed Add Robot Framework Task 2021-10-26 11:12:37 +01:00
Frerik Andriessen
0a555f3cbd Make github-set-status fail if it was unsuccessful 2021-10-21 18:48:35 +01:00
palakagrawaljk
1357f855e0 fix buildpack examples
Signed-off-by: palakagrawaljk <palakagrawaljk@gmail.com>
2021-10-20 17:26:34 +01:00
Chmouel Boudjnah
702da14c17 git-clone Add documentation on short lived token
add a section in Readme about short lived tokens that can be used in
lieu of password with a note about bitbucket server workaround.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2021-10-19 16:55:34 +01:00
Yulia Gaponenko
2bae9d1479 Add platforms annotation to several tasks
Annotation about linux/amd64,linux/s390x,linux/ppc64le platforms was added
to the latest versions of the npm, wget, write-file, tekton-catalog-publish,
pytest, python-coverage tasks.
Container image SHAs were updated to use the latest versions with
multi-arch support for npm and wget tasks.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-10-18 15:35:34 +01:00
Frerik Andriessen
30f6b1aebf Fail github-add-comment task if it was unsuccessful 2021-10-18 10:32:34 +01:00
Frerik Andriessen
9e49b16100 Fail github-add-gist task if it was unsuccessful 2021-10-16 05:31:33 +01:00
Frerik Andriessen
dc81350f1b Make github-open-pr fail if HTTP POST was unsuccessful 2021-10-11 16:27:32 +01:00
vinamra28
a6e8e8f880 Bump tektoncd/pipelines to 0.28.1 2021-10-07 15:50:30 +01:00
Frerik Andriessen
e2ac633944 Sets the user_home default to /root, otherwise ssh-credentials don't work
Other small adjustments:
* Made input workspace optional
* Added some explanation on how to use the input workspace
* Included a reference for .ssh directory setup
2021-10-07 07:03:30 +01:00
Frerik Andriessen
8e94bc1872 Add 'plain' option to kube-linter output formatting 2021-10-06 17:31:30 +01:00
Yulia Gaponenko
dadd0289fa Add platforms annotation to golang-* tasks
Annotation about linux/amd64, linux/s390x, and linux/ppc64le platforms was
added to the latest versions of the golang-* tasks.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-10-05 15:05:29 +01:00
Yulia Gaponenko
3b9cd7c6b1 Use multi-arch go-rest-api-test image
The image is used in many catalog tests. To run the tests on many
platforms, the image should be the multi-arch one (at this moment -
linux/amd64, linux/ppc64le, linux/s390x, linux/arm64).

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-09-29 14:06:28 +01:00
shaowenchen
00ddee3f3d feature: add rsync task
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2021-09-29 12:14:27 +01:00