Skip to content

SpringerPE/concourse-command-resource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command Concourse Resource

This is POC resource for Concourse 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

---
resource_types:
- name: command
  type: docker-image
  source:
    repository: platformengineering/concourse-command-resource

resources:
- 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: ls

jobs:
- name: run-command
  plan:
  - get: source
  - put: run_ls
    params:
      args: "-la"

Author

Jose Riguera [email protected]

(c) 2017 Springer Nature Platform Engineering