Skip to content

Instantly share code, notes, and snippets.

@MonksterFX
Created August 19, 2020 20:10
Show Gist options
  • Save MonksterFX/50c61b29538bb9c73a6af174bacf3151 to your computer and use it in GitHub Desktop.
Save MonksterFX/50c61b29538bb9c73a6af174bacf3151 to your computer and use it in GitHub Desktop.
cli helpers for pipelines

helpers to build your pipeline

stream files (ssh-keys, build.json etc. from pipeline)

echo $FILE > file.txt

extract version from file (in this example from package.json)

VERSION=$(cat package.json | jq -r .version)

or

VERSION=$(node -p "require('./package').version")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment