Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hosting-a-repository: Add some more comments #543

Merged
merged 2 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
linkcheck:
name: Linkcheck
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down
11 changes: 9 additions & 2 deletions docs/hosting-a-repository.rst
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,17 @@ The instructions will use Gitlab.com.
- gpg-connect-agent reloadagent /bye
- cat $GPG_PASSPHRASE | /usr/libexec/gpg-preset-passphrase --preset $GPG_KEY_GREP
- gpg --import --batch ${GPG_PRIVATE_KEY}
# Build & install build dependencies
# Build & install build dependencies, branch can be unset too then it will default to master see man flatpak-manifest > branch
- flatpak-builder build --user --install-deps-from=flathub --gpg-sign=${GPG_KEY_ID} --disable-rofiles-fuse --disable-updates --force-clean --repo=repo ${BRANCH:+--default-branch=$BRANCH} ${MANIFEST_PATH}
# Generate a Flatpak bundle
# Generate a Flatpak bundle for testing in MRs
- flatpak build-bundle --gpg-sign=${GPG_KEY_ID} repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${APP_ID} ${BRANCH}
# flatpak-builder exports contents to repo folder after building
# This generates summary, appstream refs and prunes the folder to keep the latest commit only in preparation for publishing
- flatpak build-update-repo --gpg-sign=${GPG_KEY_ID} --generate-static-deltas --prune repo/
artifacts:
paths:
- $BUNDLE
# This artifact will be used when publishing to the static site
- repo
expire_in: 1 week
rules:
Expand Down Expand Up @@ -360,6 +363,7 @@ This uses Gitlab.com's `hosted aarch64 runners <https://docs.gitlab.com/ee/ci/ru
root:x:0:
EOF

# Add the flathub repository for installing build dependencies
- flatpak remote-add --user --if-not-exists flathub ${RUNTIME_REPO}
- gpg --list-keys --with-keygrip
- echo "allow-preset-passphrase" >> ~/.gnupg/gpg-agent.conf
Expand All @@ -383,6 +387,7 @@ This uses Gitlab.com's `hosted aarch64 runners <https://docs.gitlab.com/ee/ci/ru
ARCH: x86_64
extends: .setup
script:
# Build the app, ARCH should be host arch, BRANCH can be specified or if not it will default to master, see man flatpak-manifest > branch
- flatpak-builder build --arch=${ARCH} --user --install-deps-from=flathub --gpg-sign=${GPG_KEY_ID} --disable-rofiles-fuse --disable-updates --force-clean --repo=repo ${BRANCH:+--default-branch=$BRANCH} ${MANIFEST_PATH}
stage: build-x86_64

Expand All @@ -406,6 +411,8 @@ This uses Gitlab.com's `hosted aarch64 runners <https://docs.gitlab.com/ee/ci/ru
- "build-aarch64"
extends: .setup
script:
# The repo folder must have contents for both arches present, so they are chained one after another through dependencies
# prune is run to keep the latest commit only
- flatpak build-update-repo --gpg-sign=${GPG_KEY_ID} --generate-static-deltas --prune repo

pages:
Expand Down
Loading