From b2d70d14ef7fbb58b9500b36dfc9c1ff6d2831c4 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Tue, 12 Dec 2023 17:51:33 +0200 Subject: [PATCH] ci: Validate that all distros have Release files Fixes #11 --- .circleci/config.yml | 27 +++++++++++++++++++++++++++ .github/workflows/check-packages.yml | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..d18c828 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,27 @@ +--- +version: 2.1 +common-steps: + - &installdeps + run: + name: Install Debian packaging dependencies + command: | + apt-get update && apt-get install -y gpg +jobs: + check-sigs: + docker: + - image: debian:bullseye + steps: + - checkout + - *installdeps + - run: + name: Verify that all distros have Release files + command: for i in $(ls dangerzone); do ls -l ./repo/public/dists/${i}/Release{,.gpg}; done + - run: + name: Verify signatures on all Release files + command: | + gpg --import repo/public/fpf-apt-tools-archive-keyring.gpg + for i in repo/public/dists/*/Release; do gpg --verify "${i}.gpg" "$i"; done +workflows: + check-packages: + jobs: + - check-sigs diff --git a/.github/workflows/check-packages.yml b/.github/workflows/check-packages.yml index c8d97fc..e9c5f00 100644 --- a/.github/workflows/check-packages.yml +++ b/.github/workflows/check-packages.yml @@ -11,6 +11,8 @@ jobs: - uses: actions/checkout@v3 - name: Install Debian packaging dependencies run: apt-get update && apt-get install -y gpg + - name: Verify that all distros have Release files + run: for i in $(ls dangerzone); do ls -l ./repo/public/dists/${i}/Release{,.gpg}; done - name: Verify signatures on all Release files run: | gpg --import repo/public/fpf-apt-tools-archive-keyring.gpg