Browse Source

Add version metadata to packaging

master
Lukas Metzger 5 months ago
parent
commit
28abbfa356
4 changed files with 12 additions and 5 deletions
  1. +3
    -3
      .travis/build-package.sh
  2. +1
    -1
      .travis/deploy-release.sh
  3. +1
    -1
      .travis/deploy-snapshot.sh
  4. +7
    -0
      utils/make-package.sh

+ 3
- 3
.travis/build-package.sh View File

@@ -3,10 +3,10 @@

if test $TRAVIS_TAG
then
utils/make-package.sh pdnsmanager-${TRAVIS_TAG:1}
utils/make-package.sh pdnsmanager-$TRAVIS_COMMIT
utils/make-package.sh pdnsmanager-${TRAVIS_TAG:1} ${TRAVIS_TAG:1}
utils/make-package.sh pdnsmanager-$TRAVIS_COMMIT $TRAVIS_COMMIT
else
utils/make-package.sh pdnsmanager-$TRAVIS_COMMIT
utils/make-package.sh pdnsmanager-$TRAVIS_COMMIT $TRAVIS_COMMIT
fi

exit 0


+ 1
- 1
.travis/deploy-release.sh View File

@@ -1,3 +1,3 @@
#!/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
- 1
.travis/deploy-snapshot.sh View File

@@ -1,3 +1,3 @@
#!/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"

+ 7
- 0
utils/make-package.sh View File

@@ -21,6 +21,13 @@ cd ..
cp LICENSE "$1"
cp README.md "$1"

# Add version info
cat << EOF > "$1"/version.json
{
"version": "$2"
}
EOF

# Create archive
tar -czf "$1".tar.gz "$1"



Loading…
Cancel
Save