Skip to content
Snippets Groups Projects
Verified Commit 8078cc4a authored by nd's avatar nd
Browse files

move more settings to variables

parent 43a30b55
Branches
Tags 2020
No related merge requests found
Pipeline #8587 waiting for manual action
...@@ -6,13 +6,19 @@ include: ...@@ -6,13 +6,19 @@ include:
variables: variables:
PACKAGE_NAME: prometheus-nginxlog-exporter PACKAGE_NAME: prometheus-nginxlog-exporter
UPSTREAM_GITHUB_PATH: martin-helmich/prometheus-nginxlog-exporter
APT_REPO: infrapackages-$PACKAGE_NAME APT_REPO: infrapackages-$PACKAGE_NAME
RUN_AUTOUPDATE: "0"
image: registry.git.cccv.de/infra/packages/docker-images/bullseye image: registry.git.cccv.de/infra/packages/docker-images/bullseye
autoupdate: autoupdate:
stage: .pre stage: .pre
rules:
- if: '$RUN_AUTOUPDATE != "1"'
when: manual when: manual
- if: '$RUN_AUTOUPDATE == "1"'
when: always
dependencies: [] dependencies: []
variables: variables:
GIT_CHECKOUT: "true" GIT_CHECKOUT: "true"
...@@ -41,7 +47,7 @@ autoupdate: ...@@ -41,7 +47,7 @@ autoupdate:
.build:binary: .build:binary:
extends: .build extends: .build
script: 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 - tar -xf ${UPSTREAM_VERSION}.tar.gz
- cd prometheus-nginxlog-exporter-* - cd prometheus-nginxlog-exporter-*
- go build - go build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment