From 8c6ac8f4e68eaacdf1d4dd9eea5d3de3ac551714 Mon Sep 17 00:00:00 2001 From: morph027 <446474-morph027@users.noreply.gitlab.com> Date: Sun, 26 Nov 2023 18:00:18 +0000 Subject: [PATCH] add delay trigger --- .gitlab-ci.yml | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 16bb0ef..5779fab 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,6 +19,7 @@ stages: - export PATCHLEVEL=$(echo ${CI_COMMIT_TAG} | cut -d'+' -f2) - apt-get -qq update - apt-get -qqy install ruby-dev ruby-ffi curl file + - gem install fpm - mkdir -p "${CI_PROJECT_DIR}/package_root/usr/bin" - echo "https://dl.gitea.com/gitea/v${VERSION}/gitea-${VERSION}-linux-${ARCH}" - curl -sL -o @@ -55,14 +56,41 @@ stages: only: - tags -gitea-amd64: +.manual: &manual + when: manual + only: + - tags + +.trigger: &trigger + when: delayed + start_in: 1 hours + only: + - triggers + +gitea-amd64-tag: <<: *package + <<: *manual variables: <<: *vars ARCH: amd64 -gitea-arm64: +gitea-amd64-trigger: <<: *package + <<: *trigger + variables: + <<: *vars + ARCH: amd64 + +gitea-arm64-tag: + <<: *package + <<: *manual + variables: + <<: *vars + ARCH: arm64 + +gitea-arm64-trigger: + <<: *package + <<: *trigger variables: <<: *vars ARCH: arm64 @@ -120,7 +148,8 @@ reprepro: script: - apt-get -qq update - apt-get -qqy install curl - - curl -L https://gitlab.com/packaging/utils/-/raw/main/repo.sh | bash -s -- gitea + - curl -L https://gitlab.com/packaging/utils/-/raw/main/repo.sh | + bash -s -- gitea only: - tags