apkg is already installed in apkg LXC images, no need to install it here.
Also use LXC image for make-archive.
# }}}
# pkg {{{
-.setup_apkg: &setup_apkg
- - python3 -m pip install -U apkg
-
.pkg_deb_extras: &pkg_deb_extras
before_script:
- apt update
- lxc
- amd64
script:
- - *setup_apkg
# make sure the archive from pkg:make-archive is available
- apkg info cache | grep archive/dev
- apkg install --build-dep
pkg:make-archive:
# archive is created once and reused in other pkg jobs
<<: *pkg_deb_extras
- image: $CI_REGISTRY/packaging/apkg/ci/debian-11:apkg
+ image: $CI_REGISTRY/packaging/apkg/lxc/debian-11
stage: pkg
needs: []
artifacts:
paths:
- pkg/
script:
- - *setup_apkg
- apkg build-dep
- apkg make-archive