Skip to content

Instantly share code, notes, and snippets.

View oiricaud's full-sized avatar
:octocat:
life is too short to wait

Oscar Ricaud oiricaud

:octocat:
life is too short to wait
View GitHub Profile
@oiricaud
oiricaud / version-control-pipelines.sh
Last active April 14, 2020 16:23
This script automates many of the tedious tasks to version control your pipelines and push them to Openshift onto the Kabanero namespace
#!/usr/bin/env bash
printf "========== AUTOMATOR ===============================================\n\n"
# define variables
CONFIG=$@
branch=$(git rev-parse --abbrev-ref HEAD)
repo_full_name=$(git config --get remote.origin.url | sed 's/.*:\/\/github.com\///;s/.git$//')
token=$(git config --global github.token)