1
0
mirror of https://gitlab.com/packaging/gitea synced 2024-12-18 08:03:29 +00:00

add rules for apt repo

Signed-off-by: morph027 <stefan.heitmueller@gmx.com>
This commit is contained in:
morph027 2024-02-06 10:03:32 +01:00
parent 315ff0e1b0
commit d058c14dd5
No known key found for this signature in database
GPG Key ID: BF17A54BB873BE58

View File

@ -165,7 +165,7 @@ test-update-tag:
untracked: true untracked: true
paths: paths:
- $CI_PROJECT_DIR/.repo - $CI_PROJECT_DIR/.repo
key: reprepro key: repo
stage: repo stage: repo
image: registry.gitlab.com/packaging/reprepro-multiple-versions:latest image: registry.gitlab.com/packaging/reprepro-multiple-versions:latest
script: script:
@ -174,39 +174,40 @@ test-update-tag:
- curl -L https://gitlab.com/packaging/utils/-/raw/main/repo.sh | - curl -L https://gitlab.com/packaging/utils/-/raw/main/repo.sh |
bash -s -- gitea bash -s -- gitea


repo-tag: repo-apt-tag:
<<: [*repo] <<: [*repo]
needs: needs:
- gitea-amd64-tag - gitea-amd64-tag
- gitea-arm64-tag - gitea-arm64-tag
- test-install-tag - test-install-tag
- test-update-tag - test-update-tag
only: rules:
- tags - if: $CI_COMMIT_TAG && $CI_PIPELINE_SOURCE != "trigger"


repo-trigger:
repo-apt-trigger:
<<: [*repo] <<: [*repo]
needs: needs:
- gitea-amd64-trigger - gitea-amd64-trigger
- gitea-arm64-trigger - gitea-arm64-trigger
- test-install-trigger - test-install-trigger
- test-update-trigger - test-update-trigger
only: rules:
- triggers - if: $CI_COMMIT_TAG && $CI_PIPELINE_SOURCE == "trigger"


pages: pages:
cache: cache:
untracked: true untracked: true
paths: paths:
- $CI_PROJECT_DIR/.repo - $CI_PROJECT_DIR/.repo
key: reprepro key: repo
policy: pull policy: pull
stage: pages stage: pages
image: ubuntu:focal image: ubuntu:focal
needs: needs:
- job: repo-tag - job: repo-apt-tag
optional: true optional: true
- job: repo-trigger - job: repo-apt-trigger
optional: true optional: true
script: script:
- mkdir $CI_PROJECT_DIR/public - mkdir $CI_PROJECT_DIR/public