Add version metadata to packaging
This commit is contained in:
parent
52050a4298
commit
28abbfa356
4 changed files with 12 additions and 5 deletions
|
@ -3,10 +3,10 @@
|
||||||
|
|
||||||
if test $TRAVIS_TAG
|
if test $TRAVIS_TAG
|
||||||
then
|
then
|
||||||
utils/make-package.sh pdnsmanager-${TRAVIS_TAG:1}
|
utils/make-package.sh pdnsmanager-${TRAVIS_TAG:1} ${TRAVIS_TAG:1}
|
||||||
utils/make-package.sh pdnsmanager-$TRAVIS_COMMIT
|
utils/make-package.sh pdnsmanager-$TRAVIS_COMMIT $TRAVIS_COMMIT
|
||||||
else
|
else
|
||||||
utils/make-package.sh pdnsmanager-$TRAVIS_COMMIT
|
utils/make-package.sh pdnsmanager-$TRAVIS_COMMIT $TRAVIS_COMMIT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
curl -F "file=@pdnsmanager-${TRAVIS_TAG:1}.tar.gz" -u "travis:$UPLOAD_PASS" 'https://upload.pdnsmanager.org/?action=release'
|
curl -F "file=@pdnsmanager-${TRAVIS_TAG:1}.tar.gz" -u "travis:$UPLOAD_PASS" "https://upload.pdnsmanager.org/?action=release&version=${TRAVIS_TAG:1}"
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
curl -F "file=@pdnsmanager-$TRAVIS_COMMIT.tar.gz" -u "travis:$UPLOAD_PASS" 'https://upload.pdnsmanager.org/?action=snapshot'
|
curl -F "file=@pdnsmanager-$TRAVIS_COMMIT.tar.gz" -u "travis:$UPLOAD_PASS" "https://upload.pdnsmanager.org/?action=snapshot&version=$TRAVIS_COMMIT"
|
|
@ -21,6 +21,13 @@ cd ..
|
||||||
cp LICENSE "$1"
|
cp LICENSE "$1"
|
||||||
cp README.md "$1"
|
cp README.md "$1"
|
||||||
|
|
||||||
|
# Add version info
|
||||||
|
cat << EOF > "$1"/version.json
|
||||||
|
{
|
||||||
|
"version": "$2"
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
# Create archive
|
# Create archive
|
||||||
tar -czf "$1".tar.gz "$1"
|
tar -czf "$1".tar.gz "$1"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue