mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-11 00:00:12 +03:00
Merge pull request #431 from LebedevRI/debian
Deb PPA: change how we produce README
This commit is contained in:
commit
069cc8e957
65
.github/workflows/deb-publish.yml
vendored
65
.github/workflows/deb-publish.yml
vendored
@ -58,9 +58,12 @@ jobs:
|
|||||||
apt full-upgrade
|
apt full-upgrade
|
||||||
apt install \
|
apt install \
|
||||||
devscripts \
|
devscripts \
|
||||||
|
gettext-base \
|
||||||
|
git \
|
||||||
gnupg \
|
gnupg \
|
||||||
gpg-agent \
|
gpg-agent \
|
||||||
openssh-client \
|
openssh-client \
|
||||||
|
pandoc \
|
||||||
reprepro \
|
reprepro \
|
||||||
sshfs \
|
sshfs \
|
||||||
tar \
|
tar \
|
||||||
@ -114,6 +117,11 @@ jobs:
|
|||||||
tee -a ~/.devscripts > /dev/null <<EOT
|
tee -a ~/.devscripts > /dev/null <<EOT
|
||||||
DEBSIGN_KEYID=${{ secrets.GPG_SIGNING_SUBKEY_FINGERPRINT }}
|
DEBSIGN_KEYID=${{ secrets.GPG_SIGNING_SUBKEY_FINGERPRINT }}
|
||||||
EOT
|
EOT
|
||||||
|
- name: Fetch our git repository
|
||||||
|
timeout-minutes: 1
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
path: 'bcachefs-tools'
|
||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
timeout-minutes: 1
|
timeout-minutes: 1
|
||||||
uses: actions/download-artifact@v5
|
uses: actions/download-artifact@v5
|
||||||
@ -160,59 +168,10 @@ jobs:
|
|||||||
if [ "${{ steps.gpg.conclusion }}" != "skipped" ]; then
|
if [ "${{ steps.gpg.conclusion }}" != "skipped" ]; then
|
||||||
cp -f /etc/apt/trusted.gpg.d/apt.bcachefs.org.asc "$REPO_ROOT"
|
cp -f /etc/apt/trusted.gpg.d/apt.bcachefs.org.asc "$REPO_ROOT"
|
||||||
fi
|
fi
|
||||||
cat > "$REPO_ROOT/README.txt" <<EOR
|
if [ "${{ (github.event_name == 'push' && github.ref_type == 'branch' && github.ref_name == 'master') && 'true' || 'false' }}" = "true" ]; then
|
||||||
To add this repository to your computer, do:
|
export GPG_SIGNING_SUBKEY_FINGERPRINT=${{ secrets.GPG_SIGNING_SUBKEY_FINGERPRINT }}
|
||||||
|
envsubst < "$GITHUB_WORKSPACE/bcachefs-tools/doc/apt.bcachefs.org-README.md" | pandoc --from=markdown --to=html --output="$REPO_ROOT/.footer/README"
|
||||||
|
fi
|
||||||
wget -qO- https://apt.bcachefs.org/apt.bcachefs.org.asc | sudo tee /etc/apt/trusted.gpg.d/apt.bcachefs.org.asc
|
|
||||||
# Fingerprint: ${{ secrets.GPG_SIGNING_SUBKEY_FINGERPRINT }}
|
|
||||||
sudo cat > /etc/apt/sources.list.d/apt.bcachefs.org.sources <<EOS
|
|
||||||
Types: deb deb-src
|
|
||||||
URIs: https://apt.bcachefs.org/unstable/
|
|
||||||
# Or replace unstable with your distro's release name
|
|
||||||
Suites: bcachefs-tools-release
|
|
||||||
Components: main
|
|
||||||
Signed-By: /etc/apt/trusted.gpg.d/apt.bcachefs.org.asc
|
|
||||||
EOS
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install bcachefs-tools
|
|
||||||
|
|
||||||
|
|
||||||
Note: this will give you packages for the latest release of bcachefs-tools.
|
|
||||||
If you need packages for the latest git master commit,
|
|
||||||
replace "bcachefs-tools-release" with "bcachefs-tools-snapshot".
|
|
||||||
|
|
||||||
Or you can use add-apt-repository tool. Stable channel:
|
|
||||||
|
|
||||||
sudo add-apt-repository "deb https://apt.bcachefs.org/unstable bcachefs-tools-release main"
|
|
||||||
|
|
||||||
If you feel like living dangerously, there's also nightly/snapshot packages:
|
|
||||||
|
|
||||||
sudo add-apt-repository "deb https://apt.bcachefs.org/unstable bcachefs-tools-snapshot main"
|
|
||||||
|
|
||||||
|
|
||||||
If you want to ensure that the packages from this repository are always preferred, do:
|
|
||||||
|
|
||||||
mkdir -p /etc/apt/preferences.d
|
|
||||||
sudo cat > /etc/apt/preferences.d/apt.bcachefs.org.pref <<EOP
|
|
||||||
Package: *
|
|
||||||
Pin: origin apt.bcachefs.org
|
|
||||||
Pin-Priority: 1000
|
|
||||||
EOP
|
|
||||||
|
|
||||||
|
|
||||||
Note that yes, you should always prefer "Pin: origin <hostname>",
|
|
||||||
over "Pin: release o=<origin>", because pinning by origin
|
|
||||||
will *actually* pin by the full hostname of APT repository,
|
|
||||||
whereas any repository can claim anything in it's "Origin: " field,
|
|
||||||
and thus pinning by origin label is inherently insecure!
|
|
||||||
|
|
||||||
|
|
||||||
For more information, see:
|
|
||||||
https://wiki.debian.org/DebianRepository/UseThirdParty
|
|
||||||
|
|
||||||
Source, Debian tarballs and dsc files can be verified using https://github.com/sigstore/rekor.
|
|
||||||
EOR
|
|
||||||
cd "$GITHUB_WORKSPACE/incoming/bin-artifacts"
|
cd "$GITHUB_WORKSPACE/incoming/bin-artifacts"
|
||||||
for DIST in *
|
for DIST in *
|
||||||
do
|
do
|
||||||
|
|||||||
53
doc/apt.bcachefs.org-README.md
Normal file
53
doc/apt.bcachefs.org-README.md
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
To add this repository to your computer, do:
|
||||||
|
```bash
|
||||||
|
wget -qO- https://apt.bcachefs.org/apt.bcachefs.org.asc | sudo tee /etc/apt/trusted.gpg.d/apt.bcachefs.org.asc
|
||||||
|
# Fingerprint: $GPG_SIGNING_SUBKEY_FINGERPRINT
|
||||||
|
sudo cat > /etc/apt/sources.list.d/apt.bcachefs.org.sources <<EOS
|
||||||
|
Types: deb deb-src
|
||||||
|
URIs: https://apt.bcachefs.org/unstable/
|
||||||
|
# Or replace unstable with your distro's release name
|
||||||
|
Suites: bcachefs-tools-release
|
||||||
|
Components: main
|
||||||
|
Signed-By: /etc/apt/trusted.gpg.d/apt.bcachefs.org.asc
|
||||||
|
EOS
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install bcachefs-tools
|
||||||
|
```
|
||||||
|
|
||||||
|
> **_NOTE:_**
|
||||||
|
This will give you packages for the latest release of `bcachefs-tools`.
|
||||||
|
If you need packages for the latest `git master` commit,
|
||||||
|
replace `bcachefs-tools-release` with `bcachefs-tools-snapshot`.
|
||||||
|
|
||||||
|
Or you can use `add-apt-repository` tool. Stable channel:
|
||||||
|
```bash
|
||||||
|
sudo add-apt-repository "deb https://apt.bcachefs.org/unstable bcachefs-tools-release main"
|
||||||
|
```
|
||||||
|
|
||||||
|
If you feel like living dangerously, there's also nightly/snapshot packages:
|
||||||
|
```bash
|
||||||
|
sudo add-apt-repository "deb https://apt.bcachefs.org/unstable bcachefs-tools-snapshot main"
|
||||||
|
```
|
||||||
|
|
||||||
|
If you want to ensure that the packages from this repository are always preferred, do:
|
||||||
|
```bash
|
||||||
|
mkdir -p /etc/apt/preferences.d
|
||||||
|
sudo cat > /etc/apt/preferences.d/apt.bcachefs.org.pref <<EOP
|
||||||
|
Package: *
|
||||||
|
Pin: origin apt.bcachefs.org
|
||||||
|
Pin-Priority: 1000
|
||||||
|
EOP
|
||||||
|
```
|
||||||
|
|
||||||
|
> **_NOTE:_**
|
||||||
|
Note that yes, you should always prefer `Pin: origin <hostname>`,
|
||||||
|
over `Pin: release o=<origin>`, because pinning by origin
|
||||||
|
will *actually* pin by the full hostname of APT repository,
|
||||||
|
whereas any repository can claim anything in it's `Origin: ` field,
|
||||||
|
and thus pinning by origin label is inherently insecure!
|
||||||
|
|
||||||
|
|
||||||
|
For more information, see:
|
||||||
|
https://wiki.debian.org/DebianRepository/UseThirdParty
|
||||||
|
|
||||||
|
Source, Debian tarballs and dsc files can be verified using https://github.com/sigstore/rekor.
|
||||||
Loading…
x
Reference in New Issue
Block a user