mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-11 00:00:12 +03:00
Merge pull request #415 from LebedevRI/debian
apt repo readme: mention pinning
This commit is contained in:
commit
ebc3e58728
1
.github/workflows/deb-buildd.yml
vendored
1
.github/workflows/deb-buildd.yml
vendored
@ -119,7 +119,6 @@ jobs:
|
|||||||
EOT
|
EOT
|
||||||
- name: Configure sbuild
|
- name: Configure sbuild
|
||||||
timeout-minutes: 1
|
timeout-minutes: 1
|
||||||
if: steps.gpg.conclusion != 'skipped'
|
|
||||||
run: |
|
run: |
|
||||||
set -xe
|
set -xe
|
||||||
BUILD_DIR="$GITHUB_WORKSPACE/deb-bin/${{ inputs.dist-version }}/${{ inputs.arch }}"
|
BUILD_DIR="$GITHUB_WORKSPACE/deb-bin/${{ inputs.dist-version }}/${{ inputs.arch }}"
|
||||||
|
|||||||
1
.github/workflows/deb-orchestrator.yml
vendored
1
.github/workflows/deb-orchestrator.yml
vendored
@ -58,6 +58,7 @@ jobs:
|
|||||||
GPG_SIGNING_SUBKEY_FINGERPRINT: ${{ secrets.GPG_SIGNING_SUBKEY_FINGERPRINT }}
|
GPG_SIGNING_SUBKEY_FINGERPRINT: ${{ secrets.GPG_SIGNING_SUBKEY_FINGERPRINT }}
|
||||||
publish:
|
publish:
|
||||||
needs: [ source-only, buildd ]
|
needs: [ source-only, buildd ]
|
||||||
|
if: github.event_name != 'pull_request' && (github.ref_type == 'tag' || (github.ref_type == 'branch' && github.ref_name == 'master'))
|
||||||
uses: ./.github/workflows/deb-publish.yml
|
uses: ./.github/workflows/deb-publish.yml
|
||||||
secrets:
|
secrets:
|
||||||
GPG_SECRET_SUBKEYS: ${{ secrets.GPG_SECRET_SUBKEYS }}
|
GPG_SECRET_SUBKEYS: ${{ secrets.GPG_SECRET_SUBKEYS }}
|
||||||
|
|||||||
28
.github/workflows/deb-publish.yml
vendored
28
.github/workflows/deb-publish.yml
vendored
@ -157,7 +157,9 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
REPO_ROOT="$MOUNTPOINT/public_html"
|
REPO_ROOT="$MOUNTPOINT/public_html"
|
||||||
mkdir -p "$REPO_ROOT"
|
mkdir -p "$REPO_ROOT"
|
||||||
|
if [ -n "${{ secrets.GPG_SECRET_SUBKEYS }}" ]; 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
|
||||||
cat > "$REPO_ROOT/README.txt" <<EOR
|
cat > "$REPO_ROOT/README.txt" <<EOR
|
||||||
To add this repository to your computer, do:
|
To add this repository to your computer, do:
|
||||||
|
|
||||||
@ -168,9 +170,7 @@ jobs:
|
|||||||
Types: deb deb-src
|
Types: deb deb-src
|
||||||
URIs: https://apt.bcachefs.org/unstable/
|
URIs: https://apt.bcachefs.org/unstable/
|
||||||
# Or replace unstable with your distro's release name
|
# Or replace unstable with your distro's release name
|
||||||
Suites: bcachefs-tools-snapshot
|
Suites: bcachefs-tools-release
|
||||||
# or:
|
|
||||||
# Suites: bcachefs-tools-release
|
|
||||||
Components: main
|
Components: main
|
||||||
Signed-By: /etc/apt/trusted.gpg.d/apt.bcachefs.org.asc
|
Signed-By: /etc/apt/trusted.gpg.d/apt.bcachefs.org.asc
|
||||||
EOS
|
EOS
|
||||||
@ -181,9 +181,29 @@ jobs:
|
|||||||
Or you can use add-apt-repository tool:
|
Or you can use add-apt-repository tool:
|
||||||
|
|
||||||
|
|
||||||
sudo add-apt-repository "deb https://apt.bcachefs.org/unstable bcachefs-tools-snapshot main"
|
sudo add-apt-repository "deb https://apt.bcachefs.org/unstable bcachefs-tools-release main"
|
||||||
|
|
||||||
|
|
||||||
|
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`.
|
||||||
|
|
||||||
|
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:
|
For more information, see:
|
||||||
https://wiki.debian.org/DebianRepository/UseThirdParty
|
https://wiki.debian.org/DebianRepository/UseThirdParty
|
||||||
|
|||||||
1
.github/workflows/deb-src.yml
vendored
1
.github/workflows/deb-src.yml
vendored
@ -116,7 +116,6 @@ jobs:
|
|||||||
EOT
|
EOT
|
||||||
- name: Configure sbuild
|
- name: Configure sbuild
|
||||||
timeout-minutes: 1
|
timeout-minutes: 1
|
||||||
if: steps.gpg.conclusion != 'skipped'
|
|
||||||
run: |
|
run: |
|
||||||
set -xe
|
set -xe
|
||||||
BUILD_DIR="$GITHUB_WORKSPACE/deb-src"
|
BUILD_DIR="$GITHUB_WORKSPACE/deb-src"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user