Skip to content

Commit

Permalink
fix: getting version to just extract version.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpryan committed Mar 14, 2023
1 parent 47dd292 commit 80e3f1a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docker/version.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
re='s/github.com\/GoogleCloudPlatform\///g'
cat go.mod| grep deploystack | head -1 | sed $re | xargs > versionDS
# Don't judge me. I'm sure there's a one liner that could do it. Sometimes
# you just want it to work and be done with it.
re1='s/github.com\/GoogleCloudPlatform\///g'
re2='s/require//g'
re3='s/deploystack//g'
cat go.mod| grep deploystack | head -1 | sed $re1 | sed $re2 | sed $re3 |xargs > versionDS
date +"%m-%d-%Y %r %Z" | xargs > buildTime

0 comments on commit 80e3f1a

Please sign in to comment.