Browse Source

Updating the pipeline to use scripts for versioning

pull/8/head
Drew Short 5 years ago
parent
commit
ac185367a7
  1. 4
      pipeline.yml
  2. 2
      scripts/get_build.sh
  3. 2
      scripts/get_version.sh

4
pipeline.yml

@ -55,8 +55,8 @@ jobs:
- -c
- |
cd baphomet-js-git
echo "$(git describe --tags)-$(git rev-parse HEAD)-$(date --rfc-3339=seconds)" > ../baphomet-js-version/build.info
echo "$(git describe --tags)-$(git rev-parse HEAD)" > ../baphomet-js-version/version.info
echo $(./scripts/get_build.sh) > ../baphomet-js-version/build.info
echo $(./scripts/get_version.sh) > ../baphomet-js-version/version.info
cat ../baphomet-js-version/build.info
- task: package
config:

2
scripts/get_build.sh

@ -0,0 +1,2 @@
#!/usr/bin/env sh
echo "$(git describe --tags --long)_$(date --rfc-3339=seconds | sed 's/ /T/g')"

2
scripts/get_version.sh

@ -0,0 +1,2 @@
#!/usr/bin/env sh
echo "$(git describe --tags --long)"
Loading…
Cancel
Save