bitbucket-pipelines.yml 939 B

123456789101112131415161718192021222324252627
  1. image: debian:sid
  2. pipelines:
  3. default:
  4. - step:
  5. name: Build deb
  6. image: debian:sid
  7. caches:
  8. - apt
  9. script:
  10. - apt update
  11. - apt -y install pkg-config build-essential make libtoxcore-dev dh-make python3-jinja2 python3-requests curl git
  12. #- dh_make -y --createorig -s -p `cat bb_version.txt` || echo
  13. - tar -zcf ../tuntox_0.0.10.1.orig.tar.gz .
  14. - dpkg-buildpackage -us -uc
  15. - ls -l ..
  16. - echo tuntox_0.0.10.1.`date +%Y%m%d%H%M%S`-$BITBUCKET_COMMIT >../bb_version.txt
  17. - cp ../tuntox_0.0.10.1-1_amd64.deb ../`cat ../bb_version.txt`_amd64.deb
  18. - curl -X POST "https://${BITBUCKET_USERNAME}:${BITBUCKET_APP_PASSWORD}@api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"../"`cat ../bb_version.txt`"_amd64.deb"
  19. definitions:
  20. caches:
  21. apt: /var/cache/apt