Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

vmware-archive/staticfile-resource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

staticfile-resource

A concourse resource to take arbitrary data passed in from a pipeline and writes them to files to be used in a task.

Source Configuration

  • files: Required. An array of files to be written by the resource.

    • filename: Required. The name of the file to write to.

    • data: Required. The data that is written to the file.

Behavior

in: Write static files with data from the resource's source configuration.

Writes files to the destination directory with the arbitrary data from the resource's source configuration.

Example Configuration

An example pipeline exists in the example directory.

Resource

resource_types:
- name: staticfile
  type: docker-image
  source:
    repository: czero/staticfile-resource

resources:
- name: configuration
  type: staticfile
  source:
    files:
    - filename: {{filename}}
      data: {{configuration_data}}

Development

This resource is written in Golang. dep is used to vendor the dependencies. To download all dependencies run dep ensure.

Running tests

Ginkgo is the testing framework used by this project.

Run ginkgo -r . from the directory to run all the tests.

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published