{"id":21601547,"url":"https://github.com/vmware-samples/concourse-resource-for-marketplace","last_synced_at":"2025-09-12T00:45:51.802Z","repository":{"id":98086907,"uuid":"499192217","full_name":"vmware-samples/concourse-resource-for-marketplace","owner":"vmware-samples","description":"This project is to build a VMware Marketplace Concourse resource. This builds on the Marketplace CLI (https://github.com/vmware-labs/marketplace-cli) that provides a CLI interface to the VMware Marketplace and extends it so it can be used natively inside Concourse.We already know of internal teams that will consume this, and I predict this will be popular with our ISV partners that publish to the Marketplace.","archived":false,"fork":false,"pushed_at":"2022-12-20T20:21:05.000Z","size":44,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-24T18:28:24.679Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vmware-samples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2022-06-02T15:33:52.000Z","updated_at":"2022-06-16T14:53:31.000Z","dependencies_parsed_at":"2023-05-23T14:30:30.396Z","dependency_job_id":null,"html_url":"https://github.com/vmware-samples/concourse-resource-for-marketplace","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmware-samples%2Fconcourse-resource-for-marketplace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmware-samples%2Fconcourse-resource-for-marketplace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmware-samples%2Fconcourse-resource-for-marketplace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmware-samples%2Fconcourse-resource-for-marketplace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vmware-samples","download_url":"https://codeload.github.com/vmware-samples/concourse-resource-for-marketplace/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244227577,"owners_count":20419263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-24T19:09:51.495Z","updated_at":"2025-03-18T13:19:31.133Z","avatar_url":"https://github.com/vmware-samples.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Concourse Resource for Marketplace\n\nInteract with the [VMware Marketplace](https://marketplace.cloud.vmware.com/) from concourse.\n\n## Installing\n\nThe recommended method to use this resource is with\n[resource_types](https://concourse-ci.org/resource-types.html) in the\npipeline config as follows:\n\n```yaml\n---\nresource_types:\n- name: marketplace\n  type: registry-image\n  source:\n    repository: projects.registry.vmware.com/tanzu_isv_engineering/mkpcli_concourse_resource\n```\n\n## Source configuration\n\n```yaml\nresources:\n- name: greenplum\n  type: marketplace\n  source:\n    csp_api_token: {{api-token}}\n    product_slug: vmware-tanzu-greenplum-r-11\n```\n\n* `csp_api_token`: *Required string.*\n\n  API Token from your VMware Cloud Service Portal.\n\n* `product_slug`: *Required string.*\n\n  Slug of the product on the VMware Marketplace.\n\n* `marketplace_env`: *Optional string.*\n\n  Marketplace environment to use. Either `staging` or `production`\n\n  Defaults to `production`.\n\n## Behavior\n\n### `check`: check for new product versions on the VMware Marketplace\n\nDiscovers all versions of the provided product.\n\n### `in`: download a product asset from the VMware Marketplace\n\nDownloads a product asset from the VMware Marketplace.\n\nThe details for the product is written to both `product.json` in the working directory (typically `/tmp/build/get`).\nUse this to programmatically get information for the product.\n\nA version file is written to `version`\n\n#### Parameters\n\n* `filename`: *Required string (unless `skip_download` is `true`).*\n\n  The name of the file to use when saving the downloaded asset.\n\n* `filter`: *Optional string.*\n\n  A string to select a specific asset attached to a product.\n\n* `accept_eula`: *Optional boolean.*\n\n  Accepts the EULA for the product when downloading.\n\n* `skip_download`: *Optional boolean.*\n\n  If `true`, do not download an asset, but still get the product.json file.\n\n```yaml\nresource:\n  - name: nginx\n    type: marketplace\n    source:\n      csp_api_token: {{api-token}}\n      product_slug: nginx\n\njobs:\n- name: deploy-nginx-chart\n  plan:\n  - get: cluster\n  - get: tasks\n  - get: nginx\n    params:\n      filename: \"nginx.tar\"\n      accept_eula: true\n  - task: deploy-chart\n    image: image\n    file: tasks/deploy-chart.yml      \n```\n\n### `out`: upload and attach product assets to a product in the VMware Marketplace\n\nNot yet implemented. It's on the roadmap!\n\n## Developing\n\n### Prerequisites\n\nA valid installation of golang 1.18 is required.\n\n### Dependencies\n\nWe use [go modules](https://github.com/golang/go/wiki/Modules) for dependencies, so you will have to make sure to turn them on with `GO111MODULE=on`.\n\n### Running the tests\n\nRun the tests with the make file:\n\n```\nmake test\n```\n\n### Contributing\n\nPlease see our [Code of Conduct](CODE-OF-CONDUCT.md) and [Contributors guide](CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmware-samples%2Fconcourse-resource-for-marketplace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvmware-samples%2Fconcourse-resource-for-marketplace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmware-samples%2Fconcourse-resource-for-marketplace/lists"}