summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-05-15 04:43:17 +0200
committerDaniil Baturin <daniil@baturin.org>2018-05-15 04:43:17 +0200
commita0c4e26f480f7316b33488ee863d02294e8abcd9 (patch)
treeed8677f2a04b16920a6576ff0c941b7e25d38ed0 /scripts
parentd26c149dc0476401fb01f5a7a826629a665f6834 (diff)
parentdec67cc9a39eee9f220411fd61ba20df6b6466e8 (diff)
downloadvyos-build-a0c4e26f480f7316b33488ee863d02294e8abcd9.tar.gz
vyos-build-a0c4e26f480f7316b33488ee863d02294e8abcd9.zip
Merge branch 'current' of github.com:vyos/vyos-build into current
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build-vagrant-libvirt-box5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/build-vagrant-libvirt-box b/scripts/build-vagrant-libvirt-box
index 070b3ef7..4d3482df 100755
--- a/scripts/build-vagrant-libvirt-box
+++ b/scripts/build-vagrant-libvirt-box
@@ -54,8 +54,9 @@ fi
PROVIDER=libvirt
# Create version
-date=$(date -u +%Y%m%d)
-version=$(echo "$date.0.0")
+major=$(cat build/version | cut -d'+' -f2 | rev | cut -c 5- | rev)
+sub=$(cat build/version | cut -d'+' -f2 | rev | cut -c 1-4 | rev)
+version=$(echo "$major.$sub.0")
curl -XPOST -d "version[version]=${version}" \
https://app.vagrantup.com/api/v1/box/${VAGRANT_BOX_NAME}/versions?access_token=${VAGRANT_CLOUD_ACCESS_TOKEN}
echo