Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Dec 21, 2023
1 parent aef1fb7 commit 3796dbf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/fiware/core/cygnus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ QUAY_TARGET="quay.io/fiware/cygnus-ngsi"
REPOSITORY="$(git rev-parse --show-toplevel)/$NAME"
TAGS="$(git -C $REPOSITORY rev-list --tags --max-count=1 )"
VERSION=$(git -C $REPOSITORY describe --exclude 'FIWARE*' --tags $TAGS )
DATE=`git -C $REPOSITORY log -1 --format=%ai $VERSIONv | awk '{print $1}'`

function dateDiff {
CURRENTDATE=`date +"%Y-%m-%d"`
echo $(((`date -jf %Y-%m-%d "$CURRENTDATE" +%s` - `date -jf %Y-%m-%d "$1" +%s`)/86400))
}
echo "$SOURCE - $VERSION - $(dateDiff $DATE) days old."

echo "VERSION - $VERSION"

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
Expand Down

0 comments on commit 3796dbf

Please sign in to comment.