1
0
mirror of https://gitlab.com/packaging/gitea synced 2024-12-18 16:13:44 +00:00

use repo.sh from packaging/utils

Signed-off-by: morph027 <stefan.heitmueller@gmx.com>
This commit is contained in:
morph027 2022-08-28 16:58:35 +02:00
parent 84f3a5592c
commit 95b3e57504
No known key found for this signature in database
GPG Key ID: BF17A54BB873BE58
3 changed files with 9 additions and 15 deletions

View File

@ -2,7 +2,7 @@
stages: stages:
- package - package
- test - test
- .repo - repo
- pages - pages


.vars: &vars .vars: &vars
@ -42,6 +42,7 @@ stages:
--maintainer "Stefan Heitmüller <stefan.heitmueller@gmx.com>" --maintainer "Stefan Heitmüller <stefan.heitmueller@gmx.com>"
--url "${URL}" --url "${URL}"
--depends git --depends git
--deb-recommends morph027-keyring
--deb-systemd "${CI_PROJECT_DIR}/.packaging/${NAME}.service" --deb-systemd "${CI_PROJECT_DIR}/.packaging/${NAME}.service"
--deb-activate-noawait /etc/init.d --deb-activate-noawait /etc/init.d
--prefix=/ --prefix=/
@ -114,20 +115,12 @@ reprepro:
paths: paths:
- $CI_PROJECT_DIR/.repo - $CI_PROJECT_DIR/.repo
key: reprepro key: reprepro
stage: .repo stage: repo
image: registry.gitlab.com/packaging/reprepro-multiple-versions:latest image: registry.gitlab.com/packaging/reprepro-multiple-versions:latest
script: script:
- echo "$SIGNING_KEY" > /tmp/key - apt-get -qq update
- gpg --import /tmp/key - apt-get -qqy install curl
- rm -f /tmp/key - curl -L https://gitlab.com/packaging/utils/-/raw/main/repo.sh | bash -s -- gitea
- 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
{} \+;
only: only:
- tags - tags


@ -143,7 +136,8 @@ pages:
script: script:
- mkdir $CI_PROJECT_DIR/public - mkdir $CI_PROJECT_DIR/public
- cp -r - 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/ $CI_PROJECT_DIR/public/
artifacts: artifacts:
paths: paths:

View File

@ -20,7 +20,7 @@ echo "deb https://packaging.gitlab.io/gitea gitea main" | sudo tee /etc/apt/sour


``` ```
sudo apt-get update sudo apt-get update
sudo apt-get install gitea sudo apt-get install gitea morph027-keyring
``` ```


### Start ### Start