Skip to content

Instantly share code, notes, and snippets.

View romanlab's full-sized avatar

Roman Labunsky romanlab

View GitHub Profile
@romanlab
romanlab / script.js
Last active March 15, 2019 05:44
basic node js script for github actions
const program = require('commander')
const fs = require('fs')
async function doSomething(arg) { return arg }
async function main() {
const event = JSON.parse(fs.readFileSync('/github/workflow/event.json', 'utf8'))
const firstArg = program.firstArg
name: "myplugin"
usage: "helm myplygin run"
description: |-
"Run myplugin on helm charts"
command: "echo The plugin is located in: \"$HELM_PLUGIN_DIR\" and its name is: \"$HELM_PLUGIN_NAME\""
@romanlab
romanlab / plugin-command.yaml
Last active June 6, 2021 12:36
Helm plugin hooks section
command: "echo The plugin is located in: \"$HELM_PLUGIN_DIR\" and its name is: \"$HELM_PLUGIN_NAME\""
hooks:
install: "cd $HELM_PLUGIN_DIR; ./scripts/install.sh"
update: "cd $HELM_PLUGIN_DIR; ./scripts/update.sh"
delete: "cd $HELM_PLUGIN_DIR; ./scripts/delete.sh"
command: "echo The plugin is located in: \"$HELM_PLUGIN_DIR\" and its name is: \"$HELM_PLUGIN_NAME\""
platformCommand:
- os: linux
arch: i386
command: "echo The plugin is located in: \"$HELM_PLUGIN_DIR\" and its name is: \"$HELM_PLUGIN_NAME\". The OS is linux and the arch is i386"
- os: linux
arch: amd64
command: "echo The plugin is located in: \"$HELM_PLUGIN_DIR\" and its name is: \"$HELM_PLUGIN_NAME\". The OS is linux and the arch is amd64"