From 8078cc4a093fe354036205f5db7625045acbf090 Mon Sep 17 00:00:00 2001 From: nd <git@notandy.de> Date: Thu, 25 Nov 2021 22:57:05 +0100 Subject: [PATCH] move more settings to variables --- .gitlab-ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 859220e..db0db49 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,13 +6,19 @@ include: variables: PACKAGE_NAME: prometheus-nginxlog-exporter + UPSTREAM_GITHUB_PATH: martin-helmich/prometheus-nginxlog-exporter APT_REPO: infrapackages-$PACKAGE_NAME + RUN_AUTOUPDATE: "0" image: registry.git.cccv.de/infra/packages/docker-images/bullseye autoupdate: stage: .pre - when: manual + rules: + - if: '$RUN_AUTOUPDATE != "1"' + when: manual + - if: '$RUN_AUTOUPDATE == "1"' + when: always dependencies: [] variables: GIT_CHECKOUT: "true" @@ -41,7 +47,7 @@ autoupdate: .build:binary: extends: .build script: - - wget https://github.com/martin-helmich/prometheus-nginxlog-exporter/archive/refs/tags/${UPSTREAM_VERSION}.tar.gz + - wget https://github.com/${UPSTREAM_GITHUB_PATH}/archive/refs/tags/${UPSTREAM_VERSION}.tar.gz - tar -xf ${UPSTREAM_VERSION}.tar.gz - cd prometheus-nginxlog-exporter-* - go build -- GitLab