Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add duct-tape-resource #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HeavyWombat
Copy link

@HeavyWombat HeavyWombat commented Feb 28, 2024

Add duct-tape-resource, a generic custom Concourse resource to write custom resources on the fly as inline shell scripts in the pipeline definition itself.

Example:

resources:
- name: foobar
  type: duct-tape-resource
  icon: application-variable
  check_every: 20m
  source:
    check:
      env:
        ACCESS_KEY: ((bar))

      # only run once per worker
      before: |
        #!/bin/bash
        run install of sometool

      run: |
        #!/bin/bash
        run some shell commands to get things
        
        # output of this tool will be treated a ref/version of the resource, i.e. list Git commits so it would act like a Git resource
        sometool --list

The resource is in active use and proved quite useful, because you don't need to setup a full fledged custom Concourse resource with container images, but instead quickly assemble what you need. Also useful to be used to test pipelines with a custom resource before committing to writing a standalone custom resource.

Add `duct-tape-resource`, a generic custom Concourse resource to
write custom resources on the fly as inline shell scripts in the
pipeline definition itself.

Signed-off-by: Matthias Diester <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant