Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
kostis-codefresh/node-version kostis-codefresh/node-version
The plugin exports as an environment variable the application version from package.json
arguments
version: '1.0'
steps:
main_clone:
title: Cloning main repository...
type: git-clone
repo: my-github-user/my-github-repo
revision: master
git: github
read_app_version:
title: Reading app version
type: kostis-codefresh/node-version
arguments:
PACKAGE_JSON_FOLDER: ./my-github-repo
print_app_version:
title: Printing app version
image: alpine
commands:
- echo $APP_VERSION