Skip to content

Instantly share code, notes, and snippets.

View romanlab's full-sized avatar

Roman Labunsky romanlab

View GitHub Profile
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"
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"
@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\""
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 / 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
@romanlab
romanlab / entrypoint.sh
Last active February 12, 2019 08:52
entrypoint.sh file for node js GitHub action
#!/bin/sh -l
cd /
npm ci
node script.js $*
@romanlab
romanlab / Dockerfile
Created February 12, 2019 08:22
GitHub Actions Dockerfile
FROM node:10-alpine
COPY . /
ENTRYPOINT [ "/entrypoint.sh" ]
@romanlab
romanlab / semantic-release-travis-build-stages.yml
Created October 16, 2017 16:05
semantic-release-travis-build-stages
jobs:
include:
- stage: npm release
if: branch = master
node_js: "8"
script: npm run semantic-release
@romanlab
romanlab / semantic-release-no-publish.json
Created October 16, 2017 15:57
semantic-release-no-publish
{
"scripts": {
"semantic-release": "semantic-release pre && semantic-release post"
}
}