Skip to content

Instantly share code, notes, and snippets.

@gregarndt
Last active March 28, 2016 14:11
Show Gist options
  • Save gregarndt/ab8e2110fc7d214f7266 to your computer and use it in GitHub Desktop.
Save gregarndt/ab8e2110fc7d214f7266 to your computer and use it in GitHub Desktop.
taskcluster-worker volumes spec
volumes: [
// typical cache volume persisted on the host, basically a name -> path mapping
{
type: persistent,
name: 'gecko-level-1-mozilla-inbound-dbg-linux64-workspace',
mountPath: '/home/worker/workspace',
},
// ramdisk volume
{
type: memory,
size: 2048,
mountPath: '/home/worker/tempfsmount',
},
// list of secret names to retrieve from tc-secrets and store in files named
// after the key name in a tempfs volume that's destroy when the task is completed.
// Tasks can then just cat the file to get the contents of the secret.
{
type: secret,
mountPath: '/home/worker/secrets',
secrets: ['my-secret-1', 'my-secret-2']
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment