diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 859220eec85b0bfa5c7837f19bebebdf36d81363..db0db4943fd647e9290b4c845b2f6819e01f9234 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