From 0f9c8bed3561b44c9889b42da2a7aecf493662df Mon Sep 17 00:00:00 2001 From: morph027 Date: Sat, 23 Dec 2023 12:25:57 +0100 Subject: [PATCH] refine ci pipeline steps Signed-off-by: morph027 --- .gitlab-ci.yml | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8044efa..ac0dae9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -53,6 +53,7 @@ stages: artifacts: paths: - $CI_PROJECT_DIR/*.deb + expire_in: 7 days only: - tags @@ -68,29 +69,25 @@ stages: - triggers gitea-amd64-tag: - <<: *package - <<: *manual + <<: [*package, *manual] variables: <<: *vars ARCH: amd64 gitea-amd64-trigger: - <<: *package - <<: *trigger + <<: [*package, *trigger] variables: <<: *vars ARCH: amd64 gitea-arm64-tag: - <<: *package - <<: *manual + <<: [*package, *manual] variables: <<: *vars ARCH: arm64 gitea-arm64-trigger: - <<: *package - <<: *trigger + <<: [*package, *trigger] variables: <<: *vars ARCH: arm64 @@ -161,7 +158,7 @@ test-update-tag: only: - tags -reprepro: +.repro: &repo cache: untracked: true paths: @@ -174,9 +171,23 @@ reprepro: - apt-get -qqy install curl - curl -L https://gitlab.com/packaging/utils/-/raw/main/repo.sh | bash -s -- gitea + +repo-tag: + <<: [*repo] + needs: + - test-install-tag + - test-update-tag only: - tags +repo-trigger: + <<: [*repo] + needs: + - test-install-trigger + - test-update-trigger + only: + - triggers + pages: cache: untracked: true