mirror of
https://gitlab.com/packaging/gitea
synced 2024-12-18 08:03:29 +00:00
use repo.sh from packaging/utils
Signed-off-by: morph027 <stefan.heitmueller@gmx.com>
This commit is contained in:
parent
84f3a5592c
commit
95b3e57504
@ -2,7 +2,7 @@
|
||||
stages:
|
||||
- package
|
||||
- test
|
||||
- .repo
|
||||
- repo
|
||||
- pages
|
||||
|
||||
.vars: &vars
|
||||
@ -42,6 +42,7 @@ stages:
|
||||
--maintainer "Stefan Heitmüller <stefan.heitmueller@gmx.com>"
|
||||
--url "${URL}"
|
||||
--depends git
|
||||
--deb-recommends morph027-keyring
|
||||
--deb-systemd "${CI_PROJECT_DIR}/.packaging/${NAME}.service"
|
||||
--deb-activate-noawait /etc/init.d
|
||||
--prefix=/
|
||||
@ -114,20 +115,12 @@ reprepro:
|
||||
paths:
|
||||
- $CI_PROJECT_DIR/.repo
|
||||
key: reprepro
|
||||
stage: .repo
|
||||
stage: repo
|
||||
image: registry.gitlab.com/packaging/reprepro-multiple-versions:latest
|
||||
script:
|
||||
- echo "$SIGNING_KEY" > /tmp/key
|
||||
- gpg --import /tmp/key
|
||||
- rm -f /tmp/key
|
||||
- test -f $CI_PROJECT_DIR/.repo/gpg.key || gpg --export --armor "$SIGNING_KEY_ID" > $CI_PROJECT_DIR/.repo/gpg.key
|
||||
- sed -i 's,##SIGNING_KEY_ID##,'$SIGNING_KEY_ID',' .repo/conf/distributions
|
||||
- find $CI_PROJECT_DIR -type f -name "*.deb" -exec
|
||||
reprepro
|
||||
-b $CI_PROJECT_DIR/.repo
|
||||
includedeb
|
||||
gitea
|
||||
{} \+;
|
||||
- apt-get -qq update
|
||||
- apt-get -qqy install curl
|
||||
- curl -L https://gitlab.com/packaging/utils/-/raw/main/repo.sh | bash -s -- gitea
|
||||
only:
|
||||
- tags
|
||||
|
||||
@ -143,7 +136,8 @@ pages:
|
||||
script:
|
||||
- mkdir $CI_PROJECT_DIR/public
|
||||
- cp -r
|
||||
$CI_PROJECT_DIR/.repo/{gpg.key,dists,pool}
|
||||
$CI_PROJECT_DIR/.repo/gpg.key
|
||||
$CI_PROJECT_DIR/.repo/gitea/{dists,pool}
|
||||
$CI_PROJECT_DIR/public/
|
||||
artifacts:
|
||||
paths:
|
||||
|
Loading…
Reference in New Issue
Block a user