diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-01-24 20:54:43 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-01-24 20:54:43 +0200 |
commit | 4babbf0ea2e817c288f56046ee27862161ce9fcd (patch) | |
tree | 03a4721088bd4fcb6f7f5a27462de7f389413001 /ci-prod-obnam.ick | |
parent | 72f1a35ad20200a6dab4bcacc4d2b99eece69d54 (diff) | |
download | liw-ci-4babbf0ea2e817c288f56046ee27862161ce9fcd.tar.gz |
obnam: build releases
Diffstat (limited to 'ci-prod-obnam.ick')
-rw-r--r-- | ci-prod-obnam.ick | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ci-prod-obnam.ick b/ci-prod-obnam.ick index b1d19a2..ac0e69f 100644 --- a/ci-prod-obnam.ick +++ b/ci-prod-obnam.ick @@ -265,6 +265,7 @@ pipelines: shell: | export HOME=/workspace export PATH="$HOME/.cargo/bin:$PATH" + export TMPDIR=/workspace cd /workspace/src name="$(dpkg-parsechangelog -S Source)" @@ -307,5 +308,26 @@ pipelines: install -d /workspace/examples install -m 0644 obnam.html obnam.pdf /workspace/examples/. + # Build new releases. + echo ======================================== + echo looking for new releases to + + # TEMPORARILY get the latest release tag + rm -f /workspace/built_tags # FIXME + touch /workspace/built_tags # FIXME + python3 ./list_new_release_tags /workspace/built_tags + tac < /workspace/built_tags | tail +2 > foo + mv foo /workspace/built_tags + + python3 ./list_new_release_tags /workspace/built_tags | while read tag + do + echo ---------------------------------------- + echo "New release tag: $tag" + bash ./build_release_deb.sh /workspace "$tag" + echo "Finished building tag $tag" + done + echo ======================================== + echo "Finished building release debs (if any)" + - action: rsync where: host |