123456789101112131415161718192021222324252627 |
- image: debian:sid
- pipelines:
- default:
- - step:
- name: Build deb
- image: debian:sid
- caches:
- - apt
- script:
- - apt update
- - apt -y install pkg-config build-essential make libtoxcore-dev dh-make python3-jinja2 python3-requests curl git
- #- dh_make -y --createorig -s -p `cat bb_version.txt` || echo
- - tar -zcf ../tuntox_0.0.10.1.orig.tar.gz .
- - dpkg-buildpackage -us -uc
- - ls -l ..
- - echo tuntox_0.0.10.1.`date +%Y%m%d%H%M%S`-$BITBUCKET_COMMIT >../bb_version.txt
- - cp ../tuntox_0.0.10.1-1_amd64.deb ../`cat ../bb_version.txt`_amd64.deb
- - 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"
- definitions:
- caches:
- apt: /var/cache/apt
|