ci: add basic job to check new key additions and removals

This commit is contained in:
Levente Polyak
2021-04-29 23:58:47 +02:00
parent feab8a68eb
commit 38c96658c2
2 changed files with 64 additions and 0 deletions

26
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,26 @@
image: archlinux:latest
stages:
- lint
variables:
PACMAN_CACHE: "${CI_PROJECT_DIR}/.pacman/pkg"
cache:
paths:
- .pacman/pkg
key: ${CI_JOB_NAME}
check-new-key:
stage: lint
needs: []
script:
- install -d "${PACMAN_CACHE}"
- pacman -Syu --needed --noconfirm --cachedir "${PACMAN_CACHE}" git grep hopenpgp-tools sequoia-keyring-linter
- ./.gitlab/check-keyids-change
only:
refs:
- merge_requests
changes:
- master-keyids
- packager-keyids