Skip to content

Commit

Permalink
Version update v3.1.0
Browse files Browse the repository at this point in the history
Signed-off-by: Kumar Vishnu <kumarvishnu@logiq.ai>
  • Loading branch information
Kumar Vishnu committed Oct 17, 2024
1 parent d31e77f commit ca9e26d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
)

// Update this before publishing the release!!!
var currentReleaseVersion = "3.0.0"
var currentReleaseVersion = "3.1.0"

var rootCmd = &cobra.Command{
Short: "apicactl - CLI for Apica Ascent",
Expand Down
12 changes: 10 additions & 2 deletions goxbuild.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash

# Check if gox command is available
which gox >& /dev/null
if [ $? != 0 ]
then
Expand All @@ -8,26 +10,32 @@ then
exit 1
fi


# Extract version from root
VER=`grep currentReleaseVersion cmd/root.go | cut -d " " -f 4 | cut -d '"' -f 2`
echo "VER=$VER"

# Get latest git commit hash
CM=`git log -1 | grep commit | cut -d " " -f 2`
dd=`date`
LOC="apicactl-release-$VER"

# List of binaries to build for different OS and ARCH
ALIST="apicactl_darwin_amd64 apicactl_freebsd_386 apicactl_freebsd_amd64 apicactl_freebsd_arm \
apicactl_linux_386 apicactl_linux_amd64 apicactl_linux_arm apicactl_linux_mips apicactl_linux_mips64 \
apicactl_linux_mips64le apicactl_linux_mipsle apicactl_linux_s390x apicactl_netbsd_386 \
apicactl_netbsd_amd64 apicactl_netbsd_arm apicactl_openbsd_386 apicactl_openbsd_amd64 \
apicactl_windows_386.exe apicactl_windows_amd64.exe"

#gox -osarch="$ALIST"
gox
gox

echo "ALIST=$ALIST"

# Create release directory
rm -fr $LOC
mkdir $LOC

# Add a release note
echo \
"apicactl release form private build
Expand Down

0 comments on commit ca9e26d

Please # to comment.