https://github.com/springerpe/concourse-command-resource
POC command resource for concourse
https://github.com/springerpe/concourse-command-resource
concourse concourse-ci concourse-ci-resource concourse-resource
Last synced: 2 months ago
JSON representation
POC command resource for concourse
- Host: GitHub
- URL: https://github.com/springerpe/concourse-command-resource
- Owner: SpringerPE
- License: mit
- Created: 2017-08-11T08:47:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-11T16:42:08.000Z (over 7 years ago)
- Last Synced: 2025-01-14T04:44:41.633Z (4 months ago)
- Topics: concourse, concourse-ci, concourse-ci-resource, concourse-resource
- Language: Shell
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Command [Concourse](http://concourse.ci) Resource
This is POC resource for [Concourse](http://concourse.ci) to execute arbitrary
commands## Source Configuration
Only one parameter is required, the (path) command:
* `command`: The command to be executed within the container
## Behavior
### `check`, `in`
Currently this resource only supports the `put` phase of a job plan, so these
are effectively no-ops. This will likely change in the future.### `out`: Run an command
Run a command with the given arguments.
#### Parameters
Only one optional parameter can be specified:
* `args`: A string containing the arguments for the given command
## Example Pipeline
```yml
---
resource_types:
- name: command
type: docker-image
source:
repository: platformengineering/concourse-command-resourceresources:
- name: source
type: git
source:
uri: [email protected]:springerpe/repository.git
branch: master
private_key: {{github-private-key}}
- name: run_ls
type: command
source:
command: lsjobs:
- name: run-command
plan:
- get: source
- put: run_ls
params:
args: "-la"
```# Author
Jose Riguera
(c) 2017 Springer Nature Platform Engineering