Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
gitlab_to_aptly [2021/05/29 15:23] okias missing "" for ARCHS |
gitlab_to_aptly [2021/05/29 19:04] okias [Aptly] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Creating repository from automated Debian Salsa builds ====== | ====== Creating repository from automated Debian Salsa builds ====== | ||
+ | {{ : | ||
===== Motivation ===== | ===== Motivation ===== | ||
I'm not an Debian maintainer. Nor I want to be in future. | I'm not an Debian maintainer. Nor I want to be in future. | ||
- | My reasons to do all this is that: | + | My reasons to do all this is: |
- I want some specific software to be packaged for Debian | - I want some specific software to be packaged for Debian | ||
- | - when I update packaging on salsa.debian.org I want to have available package for computers and phones | + | - when I update packaging on salsa.debian.org I want to have available package for my devices |
- | - I don't want to bother | + | - I don't want to bother |
- I want also others to be able use my packages | - I want also others to be able use my packages | ||
These reasons motivated me to look into [[salsa.debian.org/ | These reasons motivated me to look into [[salsa.debian.org/ | ||
+ | |||
+ | ==== Advantages ==== | ||
+ | * package build process is handled by salsa, no need to worry about it | ||
+ | * ecologic - it's build only once | ||
+ | |||
+ | ==== Disadvantages ==== | ||
+ | * no control about build process than offered by salsa-ci.yml configuration file | ||
===== Predisposition ===== | ===== Predisposition ===== | ||
- | - You have correctly setup Salsa CI in each project you want to include in your repo (including | + | - You did correctly setup **debian/ |
- | - you didn't disabled | + | - you build for achitectures |
- | You can take [[https:// | + | You can look at project configuration of [[https:// |
===== Where to start ===== | ===== Where to start ===== | ||
Line 97: | Line 104: | ||
get_artifacts() { | get_artifacts() { | ||
for job in $JOBS; do | for job in $JOBS; do | ||
- | curl -o ${id}_${job}.zip -H ' | + | BRANCH=" |
+ | curl -o ${id}_${job}.zip -H ' | ||
unzip ${id}_${job}.zip && \ | unzip ${id}_${job}.zip && \ | ||
rm ${id}_${job}.zip && \ | rm ${id}_${job}.zip && \ | ||
Line 114: | Line 122: | ||
aptly repo add ${REPO_NAME} ${ARTIF_UNPACK} # add files | aptly repo add ${REPO_NAME} ${ARTIF_UNPACK} # add files | ||
aptly publish drop unstable # first we get rid of previously published repo | aptly publish drop unstable # first we get rid of previously published repo | ||
- | | + | APTLY_ARCHS=`echo $ARCHS | tr " " ,` |
+ | aptly publish repo -batch -architectures "${APTLY_ARCHS}" -distribution unstable ${REPO_NAME} | ||
} | } | ||