mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-18 19:20:35 +02:00
Compare commits
2 commits
0e817902da
...
7f27c652fc
Author | SHA1 | Date | |
---|---|---|---|
7f27c652fc | |||
![]() |
178364e3a7 |
3 changed files with 11 additions and 38 deletions
23
.github/workflows/check_repos.yml
vendored
23
.github/workflows/check_repos.yml
vendored
|
@ -46,30 +46,21 @@ jobs:
|
||||||
apt update
|
apt update
|
||||||
apt-get install python-all -y
|
apt-get install python-all -y
|
||||||
|
|
||||||
- name: Add packages.freedom.press PGP key (gpg)
|
- name: Add GPG key for the packages.freedom.press
|
||||||
if: matrix.version != 'trixie'
|
|
||||||
run: |
|
run: |
|
||||||
apt-get update && apt-get install -y gnupg2 ca-certificates
|
apt-get update && apt-get install -y gnupg2 ca-certificates
|
||||||
dirmngr # NOTE: This is a command that's necessary only in containers
|
dirmngr # NOTE: This is a command that's necessary only in containers
|
||||||
# The key needs to be in the GPG keybox database format so the
|
|
||||||
# signing subkey is detected by apt-secure.
|
|
||||||
gpg --keyserver hkps://keys.openpgp.org \
|
gpg --keyserver hkps://keys.openpgp.org \
|
||||||
--no-default-keyring --keyring ./fpf-apt-tools-archive-keyring.gpg \
|
--no-default-keyring --keyring ./fpf-apt-tools-archive-keyring.gpg \
|
||||||
--recv-keys "DE28 AB24 1FA4 8260 FAC9 B8BA A7C9 B385 2260 4281"
|
--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 PGP key (sq)
|
# Export the GPG key in armor mode because sequoia needs it this way
|
||||||
if: matrix.version == 'trixie'
|
# (sqv is used on debian trixie by default to check the keys)
|
||||||
run: |
|
|
||||||
apt-get update && apt-get install -y ca-certificates sq
|
|
||||||
mkdir -p /etc/apt/keyrings/
|
mkdir -p /etc/apt/keyrings/
|
||||||
# On debian trixie, apt-secure uses `sqv` to verify the signatures
|
gpg --no-default-keyring --keyring ./fpf-apt-tools-archive-keyring.gpg \
|
||||||
# so we need to retrieve PGP keys and store them using the base64 format.
|
--armor --export "DE28 AB24 1FA4 8260 FAC9 B8BA A7C9 B385 2260 4281" \
|
||||||
sq network keyserver \
|
> /etc/apt/keyrings/fpf-apt-tools-archive-keyring.gpg
|
||||||
--server hkps://keys.openpgp.org \
|
|
||||||
search "DE28 AB24 1FA4 8260 FAC9 B8BA A7C9 B385 2260 4281" \
|
|
||||||
--output /etc/apt/keyrings/fpf-apt-tools-archive-keyring.gpg
|
|
||||||
- name: Add packages.freedom.press to our APT sources
|
- name: Add packages.freedom.press to our APT sources
|
||||||
run: |
|
run: |
|
||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
|
|
|
@ -27,12 +27,6 @@ jobs:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Check it's working
|
|
||||||
run: |
|
|
||||||
git describe --long --first-parent
|
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
|
@ -50,8 +44,7 @@ jobs:
|
||||||
# Load the image with the final name directly
|
# Load the image with the final name directly
|
||||||
gunzip -c share/container.tar.gz | podman load
|
gunzip -c share/container.tar.gz | podman load
|
||||||
FINAL_IMAGE_NAME="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
|
FINAL_IMAGE_NAME="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
|
||||||
TAG=$(git describe --long --first-parent | tail -c +2)
|
podman tag dangerzone.rocks/dangerzone "$FINAL_IMAGE_NAME"
|
||||||
podman tag dangerzone.rocks/dangerzone:$TAG "$FINAL_IMAGE_NAME"
|
|
||||||
podman push "$FINAL_IMAGE_NAME" --digestfile=digest
|
podman push "$FINAL_IMAGE_NAME" --digestfile=digest
|
||||||
echo "digest=$(cat digest)" >> "$GITHUB_OUTPUT"
|
echo "digest=$(cat digest)" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
|
17
INSTALL.md
17
INSTALL.md
|
@ -84,20 +84,9 @@ Dangerzone is available for:
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
First, retrieve the PGP keys.
|
Add our repository following these instructions:
|
||||||
|
|
||||||
Starting with Trixie, follow these instructions to download the PGP keys:
|
Download the GPG key for the repo:
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo apt-get update && sudo apt-get install sq -y
|
|
||||||
mkdir -p /etc/apt/keyrings/
|
|
||||||
sq network keyserver \
|
|
||||||
--server hkps://keys.openpgp.org \
|
|
||||||
search "DE28 AB24 1FA4 8260 FAC9 B8BA A7C9 B385 2260 4281" \
|
|
||||||
--output /etc/apt/keyrings/fpf-apt-tools-archive-keyring.gpg
|
|
||||||
```
|
|
||||||
|
|
||||||
On other Debian-derivatives:
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo apt-get update && sudo apt-get install gnupg2 ca-certificates -y
|
sudo apt-get update && sudo apt-get install gnupg2 ca-certificates -y
|
||||||
|
@ -110,7 +99,7 @@ sudo gpg --no-default-keyring --keyring ./fpf-apt-tools-archive-keyring.gpg \
|
||||||
> /etc/apt/keyrings/fpf-apt-tools-archive-keyring.gpg
|
> /etc/apt/keyrings/fpf-apt-tools-archive-keyring.gpg
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, on all distributions, add the URL of the repo in your APT sources:
|
Add the URL of the repo in your APT sources:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
|
|
Loading…
Reference in a new issue