Use repository owner as CI packager
Build Alpine Packages / build-and-publish (v3.24, 3.24) (push) Successful in 27m36s
Build Alpine Packages / build-and-publish (v3.24, 3.24) (push) Successful in 27m36s
This commit is contained in:
@@ -31,7 +31,7 @@ jobs:
|
||||
PACKAGE_OWNER: "${{ vars.PACKAGE_OWNER }}"
|
||||
PACKAGE_USER: "${{ secrets.PACKAGE_USER }}"
|
||||
PACKAGE_TOKEN: "${{ secrets.PACKAGE_TOKEN }}"
|
||||
PACKAGER: "Joachim Schlöffel <me@joachim-schloeffel.com>"
|
||||
PACKAGER: "${{ gitea.repository_owner }}"
|
||||
ALPINE_APK_REPO_CACHE: "/cache/public-alpine-packages/${{ matrix.alpine_registry_branch }}/apk-repo"
|
||||
CARGO_HOME: "/cache/public-alpine-packages/${{ matrix.alpine_registry_branch }}/greptimedb/cargo"
|
||||
RUSTUP_HOME: "/cache/public-alpine-packages/${{ matrix.alpine_registry_branch }}/greptimedb/rustup"
|
||||
|
||||
@@ -130,6 +130,13 @@ ALPINE_APK_CACHE_SCOPE=public-alpine-packages ALPINE_PACKAGE=greptimedb mise run
|
||||
ALPINE_APK_CACHE_PREFIX=alpine-apk-ci ALPINE_PACKAGE=greptimedb mise run apk:build
|
||||
```
|
||||
|
||||
Local packages use `local` as the default package metadata identity. Override it
|
||||
when needed:
|
||||
|
||||
```sh
|
||||
PACKAGER="Example Builder <builder@example.com>" ALPINE_PACKAGE=seaweedfs mise run apk:build
|
||||
```
|
||||
|
||||
Open an Alpine package build shell:
|
||||
|
||||
```sh
|
||||
|
||||
@@ -98,7 +98,7 @@ run_for_arch() {
|
||||
-e "APKBUILD_DIR=${container_package_dir}" \
|
||||
-e "CARGO_HOME=/home/builder/.cache/cargo" \
|
||||
-e "CARGO_TARGET_DIR=/home/builder/.cache/cargo-target" \
|
||||
-e "PACKAGER=${PACKAGER:-Joachim Schlöffel <me@joachim-schloeffel.com>}" \
|
||||
-e "PACKAGER=${PACKAGER:-local}" \
|
||||
-e "RUSTUP_HOME=/home/builder/.cache/rustup" \
|
||||
-v "${cache_prefix}-cargo:/home/builder/.cache/cargo" \
|
||||
-v "${cache_prefix}-cargo-target:/home/builder/.cache/cargo-target" \
|
||||
|
||||
@@ -7,7 +7,7 @@ repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
||||
|
||||
repo_name="${ALPINE_REPO_NAME:-local}"
|
||||
arches="${ALPINE_ARCHES:-x86_64 aarch64}"
|
||||
packager="${PACKAGER:-Joachim Schlöffel <me@joachim-schloeffel.com>}"
|
||||
packager="${PACKAGER:-local}"
|
||||
selected_packages="${ALPINE_PACKAGE:-${ALPINE_PACKAGES:-}}"
|
||||
skip_build="${ALPINE_SKIP_BUILD:-0}"
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ repo_name="${ALPINE_REPO_NAME:-local}"
|
||||
arch="${ALPINE_ARCH:-x86_64}"
|
||||
|
||||
export CARCH="${CARCH:-$arch}"
|
||||
export PACKAGER="${PACKAGER:-Joachim Schlöffel <me@joachim-schloeffel.com>}"
|
||||
export PACKAGER="${PACKAGER:-local}"
|
||||
if [[ -n "${PACKAGER_PRIVKEY:-}" ]]; then
|
||||
export PACKAGER_PRIVKEY
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user