Skip to content

Instantly share code, notes, and snippets.

View gordlea's full-sized avatar

Gord Lea gordlea

View GitHub Profile
@gordlea
gordlea / jenkins-publish.sh
Last active September 9, 2019 18:49
Jenkins NPM Publish
#!/bin/sh
echo `env`
echo `ls`
git fetch --tags
git checkout master
git pull origin master
git branch release-$PROMOTED_GIT_COMMIT $PROMOTED_GIT_COMMIT
git clean -f
case $INCREMENT_VERSION in
@gordlea
gordlea / good ppas
Last active December 28, 2015 06:59
sudo apt-get update
sudo apt-get install -y python-software-properties python g++ make
sudo add-apt-repository -y ppa:chris-lea/node.js
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
sudo add-apt-repository 'deb http://mirror.weathercity.com/mariadb/repo/5.5/ubuntu precise main'