• poetry
  • Resume

m

m

Tag Archives: git

How many deploys happened on Fridays after noon?

05 Thursday Oct 2017

Posted by imd in Programming

≈ Leave a comment

Tags

deploys, git, Programming, shyp

At Shyp we don’t like to deploy to production after a certain hour on Fridays. This protects our on-call engineers from working to put out fires on Fridays and potentially throughout the weekend as well. I was curious how often we’d broken our own rules and why. Here’s a quick shell one-liner to check on that. For each production deploy we create a tagged release so I needed to filter just git tags.

There are probably more elegant ways to do this, but here’s what I came up with:

git for-each-ref --format="%(refname:short) %(taggerdate) %(subject) %(body)" refs/tags | grep Fri | awk '{print ""$5" "$0" "}' | awk '/^[1][2-9]\:/' | wc -l

Looking for my Resume?

click here for my resume.

Links

  • My Flickr
  • Square Root of Boom (Music!)

Ian M Dawson

Meta/Login/Etc.

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com

Flickr Photos

More Photos

Is it Here?

Pages

  • poetry
  • Resume

Create a free website or blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • m
    • Already have a WordPress.com account? Log in now.
    • m
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar