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:
parent
315ff0e1b0
commit
d058c14dd5
@ -165,7 +165,7 @@ test-update-tag:
|
||||
untracked: true
|
||||
paths:
|
||||
- $CI_PROJECT_DIR/.repo
|
||||
key: reprepro
|
||||
key: repo
|
||||
stage: repo
|
||||
image: registry.gitlab.com/packaging/reprepro-multiple-versions:latest
|
||||
script:
|
||||
@ -174,39 +174,40 @@ test-update-tag:
|
||||
- curl -L https://gitlab.com/packaging/utils/-/raw/main/repo.sh |
|
||||
bash -s -- gitea
|
||||
|
||||
repo-tag:
|
||||
repo-apt-tag:
|
||||
<<: [*repo]
|
||||
needs:
|
||||
- gitea-amd64-tag
|
||||
- gitea-arm64-tag
|
||||
- test-install-tag
|
||||
- test-update-tag
|
||||
only:
|
||||
- tags
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG && $CI_PIPELINE_SOURCE != "trigger"
|
||||
|
||||
repo-trigger:
|
||||
|
||||
repo-apt-trigger:
|
||||
<<: [*repo]
|
||||
needs:
|
||||
- gitea-amd64-trigger
|
||||
- gitea-arm64-trigger
|
||||
- test-install-trigger
|
||||
- test-update-trigger
|
||||
only:
|
||||
- triggers
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG && $CI_PIPELINE_SOURCE == "trigger"
|
||||
|
||||
pages:
|
||||
cache:
|
||||
untracked: true
|
||||
paths:
|
||||
- $CI_PROJECT_DIR/.repo
|
||||
key: reprepro
|
||||
key: repo
|
||||
policy: pull
|
||||
stage: pages
|
||||
image: ubuntu:focal
|
||||
needs:
|
||||
- job: repo-tag
|
||||
- job: repo-apt-tag
|
||||
optional: true
|
||||
- job: repo-trigger
|
||||
- job: repo-apt-trigger
|
||||
optional: true
|
||||
script:
|
||||
- mkdir $CI_PROJECT_DIR/public
|
||||
|
Loading…
Reference in New Issue
Block a user