{"id":19051015,"url":"https://github.com/tomasbasham/catalogue","last_synced_at":"2026-02-06T02:33:28.575Z","repository":{"id":69147703,"uuid":"229563002","full_name":"tomasbasham/catalogue","owner":"tomasbasham","description":"Catalogue of shared Tasks","archived":false,"fork":false,"pushed_at":"2020-01-29T09:28:51.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-21T20:56:39.680Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomasbasham.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-22T12:18:45.000Z","updated_at":"2020-01-29T09:28:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"2ae87d70-14d6-4f0b-8806-bb817c7d2aee","html_url":"https://github.com/tomasbasham/catalogue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tomasbasham/catalogue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbasham%2Fcatalogue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbasham%2Fcatalogue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbasham%2Fcatalogue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbasham%2Fcatalogue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomasbasham","download_url":"https://codeload.github.com/tomasbasham/catalogue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasbasham%2Fcatalogue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29145895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T02:33:21.209Z","status":"ssl_error","status_checked_at":"2026-02-06T02:33:17.184Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T23:16:55.614Z","updated_at":"2026-02-06T02:33:28.553Z","avatar_url":"https://github.com/tomasbasham.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Catalogue\n\nThis repository defines common tasks, pipelines and operations. They are\ndesigned to be reused in many pipelines and applications.\n\n## Tasks\n\nThere are two kinds of tasks providing different levels of scope within a\ncluster. They are as follows:\n\n1. `ClusterTask` with a cluster scope. This can be installed by a cluster\n   operator and made available to users in all namespaces.\n1. `Task` with a namespace scope. This can only be installed by an operator\n   with access to the namespace, and only effects resources within that\n   namespace.\n\n## Using Tasks\n\nFirst install a `Task` on the cluster:\n\n```\n$ kubectl apply -f https://raw.githubusercontent.com/tomasbasham/catalogue/master/tasks/kaniko/kaniko.yaml\ntask.tekton.dev/kaniko created\n```\n\nYou can see which Tasks are installed using `kubectl` as well:\n\n```\n$ kubectl get tasks\nNAME    AGE\nkaniko  3s\n```\n\nOr if the task has been declared scoped to the entire cluster:\n\n```\n$ kubectl get clustertasks\nNAME    AGE\nkaniko  3s\n```\n\nWith tasks installed on the cluster (scoped either to the entire cluster or a\nnamespace) they can be used within a `Pipeline`, being sure to supply the\nrequired input parameters and resources defined within the `Task` definition.\n\n```yaml\napiVersion: tekton.dev/v1alpha1\nkind: PipelineResource\nmetadata:\n  name: git-repository\nspec:\n  type: git\n  params:\n  - name: revision\n    value: master\n  - name: url\n    value: https://github.com/tomasbasham/project-to-build\n---\napiVersion: tekton.dev/v1alpha1\nkind: PipelineResource\nmetadata:\n  name: docker-image\nspec:\n  type: image\n  params:\n  - name: url\n    value: gcr.io/project-name/image-to-build\n```\n\nEither install a preconfigured piepline or define one. For example a pipeline\ncontaining a single kaniko task could be defined as follows:\n\n```yaml\napiVersion: tekton.dev/v1alpha1\nkind: Pipeline\nmetadata:\n  name: kaniko-pipeline\nspec:\n  resources:\n  - name: source-repo\n    type: git\n  - name: docker-image\n    image: image\n  tasks:\n  - name: build-docker-image\n    taskRef:\n      name: kaniko\n    resources:\n      inputs:\n      - name: source\n        resource: source-repo\n      outputs:\n      - name: image\n        resource: docker-image\n```\n\nThen define a `PipelineRun` which will invoke the `Pipeline` and run the\nindividual `Task`s.\n\n```yaml\napiVersion: tekton.dev.v1alpha1\nkind: PipelineRun\nmetadata:\n  name: kaniko-pipeline-run\nspec:\n  pipelineRef:\n    name: kaniko-pipeline\n  resources:\n  - name: source-repo\n    resourceRef:\n      name: git-repository\n  - name: docker-image\n    resourceRef:\n      name: docker-image\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasbasham%2Fcatalogue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomasbasham%2Fcatalogue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasbasham%2Fcatalogue/lists"}