Loading .gitlab-ci-pages.yml +1 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ include: file: .gitlab-ci-base.yml pages: stage: build extends: .onion-mkdocs-clone after_script: - $ONION_MKDOCS_LOCATION/scripts/onion-mkdocs-provision-build Loading .gitlab-ci-slides.yml +1 −0 Original line number Diff line number Diff line slides: image: debian:bookworm stage: build script: - apt-get update - apt-get install -y git Loading .gitlab-ci.yml +44 −0 Original line number Diff line number Diff line Loading @@ -3,7 +3,12 @@ include: - local: '.gitlab-ci-pages.yml' - local: '.gitlab-ci-slides.yml' # # Python # python: stage: build image: debian:bookworm script: - apt-get update Loading @@ -19,7 +24,12 @@ python: #only: # - main # # Debian # debian: stage: build # Using bookworm support due to the pybuild-plugin-pyproject package #image: debian:bookworm #image: debian:bookworm-backports Loading @@ -42,8 +52,13 @@ debian: #only: # - main # # Configuration # configs: image: debian:bookworm stage: build script: - apt-get update - apt-get install -y git Loading @@ -59,8 +74,13 @@ configs: #only: # - main # # Documentation # #manpage: # image: debian:bookworm # stage: build # script: # - apt-get update # - apt-get install -y git Loading @@ -76,6 +96,30 @@ configs: # only: # - main # # Prometheus # Thanks https://gitlab.torproject.org/tpo/tpa/prometheus-alerts # pint: stage: test image: ghcr.io/cloudflare/pint script: - pint lint configs/prometheus/*rules* promtool: stage: test image: name: quay.io/prometheus/prometheus entrypoint: [""] script: - promtool check config configs/prometheus/prometheus.yml - promtool test rules configs/prometheus/test.yml # # Release # release: image: registry.gitlab.com/gitlab-org/release-cli:latest stage: .post Loading configs/prometheus/test.yml 0 → 100644 +22 −0 Original line number Diff line number Diff line --- # Sample Prometheus test rule file to be used with Docker Compose. # # Copyright (C) 2025 The Tor Project, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published # by the Free Software Foundation, either version 3 of the License, # or any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. rule_files: - prometeus-rules.yml tests: Loading
.gitlab-ci-pages.yml +1 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ include: file: .gitlab-ci-base.yml pages: stage: build extends: .onion-mkdocs-clone after_script: - $ONION_MKDOCS_LOCATION/scripts/onion-mkdocs-provision-build Loading
.gitlab-ci-slides.yml +1 −0 Original line number Diff line number Diff line slides: image: debian:bookworm stage: build script: - apt-get update - apt-get install -y git Loading
.gitlab-ci.yml +44 −0 Original line number Diff line number Diff line Loading @@ -3,7 +3,12 @@ include: - local: '.gitlab-ci-pages.yml' - local: '.gitlab-ci-slides.yml' # # Python # python: stage: build image: debian:bookworm script: - apt-get update Loading @@ -19,7 +24,12 @@ python: #only: # - main # # Debian # debian: stage: build # Using bookworm support due to the pybuild-plugin-pyproject package #image: debian:bookworm #image: debian:bookworm-backports Loading @@ -42,8 +52,13 @@ debian: #only: # - main # # Configuration # configs: image: debian:bookworm stage: build script: - apt-get update - apt-get install -y git Loading @@ -59,8 +74,13 @@ configs: #only: # - main # # Documentation # #manpage: # image: debian:bookworm # stage: build # script: # - apt-get update # - apt-get install -y git Loading @@ -76,6 +96,30 @@ configs: # only: # - main # # Prometheus # Thanks https://gitlab.torproject.org/tpo/tpa/prometheus-alerts # pint: stage: test image: ghcr.io/cloudflare/pint script: - pint lint configs/prometheus/*rules* promtool: stage: test image: name: quay.io/prometheus/prometheus entrypoint: [""] script: - promtool check config configs/prometheus/prometheus.yml - promtool test rules configs/prometheus/test.yml # # Release # release: image: registry.gitlab.com/gitlab-org/release-cli:latest stage: .post Loading
configs/prometheus/test.yml 0 → 100644 +22 −0 Original line number Diff line number Diff line --- # Sample Prometheus test rule file to be used with Docker Compose. # # Copyright (C) 2025 The Tor Project, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published # by the Free Software Foundation, either version 3 of the License, # or any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. rule_files: - prometeus-rules.yml tests: