Skip to content

netresearch/concourse-file-resource

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Concourse File Resource

CircleCI codecov Go Report Card Docker Repository on Quay GitHub release license stability-stable

Resource to put confidential file via payload

Source Configuration

  • filename: string, filename of confidential file in workspace
  • content: string, content of confidential file

Behavior

out command is not available.

check

Print SHA256 checksum of filename and content on standard output.

in

Create a file called as filename and put it in destination directory.

CAUTION: Any files with the same name in destination directory would be overwritten.

Examples

---
resource_types:
  - name: file
    type: docker-image
    source:
      repository: quay.io/henry40408/concourse-file-resource

resources:
  - name: confidential-file
    type: file
    source:
      filename: id_rsa
      content: |
        -----BEGIN RSA PRIVATE KEY-----
        MIIJKAIBAAKCAgEA0aDJt9E+v38csI3+FeyiHPU8kmeF7HeSXb62cjOoKcpiwq+L
        ... something very confidential ...
        goHZOH8rALOXE7nUZeYh2RbPE+JYdSQvFEJmjh0EEAni3d6KJXOvm0NTiTk=
        -----END RSA PRIVATE KEY-----

jobs:
  - name: download-private-ssh-key
    plan:
      - get: confidential-file
      # now you can see the file put in confidential-file workspace as id_rsa

License

MIT

About

Concourse resource to put confidential files

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Go 90.5%
  • Makefile 4.1%
  • Shell 3.0%
  • Dockerfile 2.4%