diff options
author | GDR! <gdr@gdr.name> | 2020-08-15 10:11:32 +0200 |
---|---|---|
committer | GDR! <gdr@gdr.name> | 2020-08-15 10:11:32 +0200 |
commit | 376975d2619b12823d78be0f145245d2a8585c4b (patch) | |
tree | 6391080a7e7556e61af3e857ab68e24197ed8e61 /bitbucket-pipelines.yml | |
parent | 7d9b82acd6375b719a962fa36935c85aee240503 (diff) |
Try to name the deb appropiately
Diffstat (limited to 'bitbucket-pipelines.yml')
-rw-r--r-- | bitbucket-pipelines.yml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index c656ee1..2c925ef 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml | |||
@@ -9,12 +9,13 @@ pipelines: | |||
9 | script: | 9 | script: |
10 | - apt update | 10 | - apt update |
11 | - apt -y install pkg-config build-essential make libtoxcore-dev dh-make python3-jinja2 python3-requests curl | 11 | - apt -y install pkg-config build-essential make libtoxcore-dev dh-make python3-jinja2 python3-requests curl |
12 | # - echo tuntox_0.0.9.`date +%Y%m%d%H%M%S` >bb_version.txt | ||
13 | #- dh_make -y --createorig -s -p `cat bb_version.txt` || echo | 12 | #- dh_make -y --createorig -s -p `cat bb_version.txt` || echo |
14 | - tar -zcf ../tuntox_0.0.9.orig.tar.gz . | 13 | - tar -zcf ../tuntox_0.0.9.orig.tar.gz . |
15 | - dpkg-buildpackage -us -uc | 14 | - dpkg-buildpackage -us -uc |
16 | - ls -l .. | 15 | - ls -l .. |
17 | - curl -X POST "https://${BITBUCKET_USERNAME}:${BITBUCKET_APP_PASSWORD}@api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"../tuntox_*.deb" | 16 | - echo tuntox_0.0.9.`date +%Y%m%d%H%M%S`-$BITBUCKET_COMMIT >../bb_version.txt |
17 | - cp ../tuntox_0.0.9-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" | ||
18 | 19 | ||
19 | 20 | ||
20 | 21 | ||