Some checks failed
Mark stable commit / test-unit (push) Has been cancelled
Mark stable commit / test-integration (push) Has been cancelled
Mark stable commit / test-env-virtual (push) Has been cancelled
Mark stable commit / test-env-nix (push) Has been cancelled
Mark stable commit / test-e2e (push) Has been cancelled
Mark stable commit / test-virgin-user (push) Has been cancelled
Mark stable commit / test-virgin-root (push) Has been cancelled
Mark stable commit / mark-stable (push) Has been cancelled
Introduce a dedicated publish-containers workflow triggered after stable releases. Unify container build and publish logic via scripts, add buildx-based multi-tag publishing, default base image resolution, and Arch alias tags for latest/version/stable. https://chatgpt.com/share/693c836b-0b00-800f-9536-9e273abd0fb5
15 lines
380 B
Bash
Executable File
15 lines
380 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [[ -n "${PKGMGR_NIX_DETECT_SH:-}" ]]; then
|
|
return 0
|
|
fi
|
|
PKGMGR_NIX_DETECT_SH=1
|
|
|
|
# Detect whether we are inside a container (Docker/Podman/etc.)
|
|
is_container() {
|
|
[[ -f /.dockerenv || -f /run/.containerenv ]] && return 0
|
|
grep -qiE 'docker|container|podman|lxc' /proc/1/cgroup 2>/dev/null && return 0
|
|
[[ -n "${container:-}" ]] && return 0
|
|
return 1
|
|
}
|