1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
image: registry.gitlab.com/eighthave/ci-image-git-buildpackage:latest
build:
artifacts:
paths:
- "*.deb"
expire_in: 1 day
script:
# copy it into place to be saved as an artifact
- cp ../*.deb .
- autopkgtest ../*.changes -- null
aptly:
image: debian:testing
stage: deploy
script:
- pwd
- ls -la ..
- apt-get -qy install aptly
- aptly repo create autobuilt || true
# could be a sourceful archive if we had the .orig.tar.gz always in the
# .changes -- withou that, we can't build a source archive anyway, and i'm
# not sure we should (the git history is the source here)
# # introducing new distribution "autobuilt"; "experimental" might be just as good.
# - aptly repo include --accept-unsigned --ignore-signatures --repo autobuilt ../*.changes
- aptly repo add autobuilt ../*.deb
- aptly publish repo --skip-signing --distribution autobuilt --architectures all,amd64 autobuilt || aptly publish update --skip-signing --architectures all,amd64 autobuilt
- rm -rf public
- cp -a ~/.aptly/public public
# ease debugging since directory indices are disabled
- cd public && find > index.html
artifacts:
paths:
- public
cache:
paths:
- ~/.aptly.conf
- ~/.aptly/
|