Skip to content

Commit

Permalink
WIP: Test official installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
apyrgio committed Dec 11, 2023
1 parent bd5b379 commit 751740e
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions .github/workflows/check_repos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Test official instructions for installing Dangerzone
on:
# TODO: Remove these two triggers, as we will run only nightly checks
push:
pull_request:
branches: [ main ]
schedule:
- cron: '0 0 * * *' # Run every day at 00:00 UTC.

jobs:
install-from-apt-repo:
runs-on: ubuntu-latest
container: ${{ matrix.distro }}:${{ matrix.version }}
strategy:
matrix:
include:
- distro: ubuntu
version: 23.10 # mantic
- distro: ubuntu
version: 23.04 # lunar
- distro: ubuntu
version: 22.04 # jammy
- distro: ubuntu
version: 20.04 # focal
- distro: debian
version: 13 # trixie
- distro: debian
version: 12 # bookworm
- distro: debian
version: 11 # bullseye
steps:
- name: Add Podman repo for Ubuntu Focal
if: matrix.distro == 'ubuntu' && matrix.version == 20.04
run: |
apt-get -y install curl wget gnupg2
source /etc/os-release
sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /' \
> /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"
wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_${VERSION_ID}/Release.key -O- \
| apt-key add -
apt update
apt-get install python-all -y
- name: Add GPG key for the packages.freedom.press
run: |
gpg --keyserver hkps://keys.openpgp.org \
--no-default-keyring --keyring ./fpf-apt-tools-archive-keyring.gpg \
--recv-keys "DE28 AB24 1FA4 8260 FAC9 B8BA A7C9 B385 2260 4281"
mkdir -p /etc/apt/keyrings/
mv fpf-apt-tools-archive-keyring.gpg /etc/apt/keyrings
- name: Add packages.freedom.press to our APT sources
run: |
source /etc/os-release
echo deb [signed-by=/etc/apt/keyrings/fpf-apt-tools-archive-keyring.gpg] \
https://packages.freedom.press/apt-tools-prod ${VERSION_CODENAME?} main \
| tee /etc/apt/sources.list.d/fpf-apt-tools.list
- name: Install Dangerzone
run: |
apt update
apt install -y dangerzone
install-from-yum-repo:
runs-on: ubuntu-latest
container: ${{ matrix.distro }}:${{ matrix.version }}
strategy:
matrix:
include:
- distro: fedora
version: 38
steps:
- name: Add packages.freedom.press to our YUM sources
run: |
dnf config-manager --add-repo=https://packages.freedom.press/yum-tools-prod/dangerzone/dangerzone.repo
- name: Install Dangerzone
run: dnf install dangerzone

0 comments on commit 751740e

Please sign in to comment.