actions-marketplace-validations/Setup Alpine Linux environment

Set up a chroot-based Alpine Linux environment and optionally QEMU user emulator for non-x86 architectures.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
apk-tools-urlURL of the apk-tools static binary to use. It must end with `#!sha256!` followed by a SHA-256 hash of the file. This should normally be left at the default value. nohttps://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.10/x86_64/apk.static#!sha256!34bb1a96f0258982377a289392d4ea9f3f4b767a4bb5806b1b87179b79ad8a1c
archCPU architecture to emulate using QEMU. Allowed values are: `x86_64` (native), `x86` (native), `aarch64`, `armhf` (armv6 with hard-float), `armv7`, `loongarch64` (available since v3.21), `ppc64le`, `riscv64` (available since v3.20), and `s390x` nox86_64
branchAlpine branch (aka release) to install (e.g. `v3.15`, `latest-stable`, `edge`).nolatest-stable
extra-keysA list of paths of additional trusted keys (for installing packages from the extra-repositories) to copy into /etc/apk/keys/. The paths should be relative to the workspace directory (the default location of your repository when using the checkout action). no""
extra-repositoriesA list of additional Alpine repositories to add into /etc/apk/repositories (Alpine's official main and community repositories are always added). no""
mirror-urlURL of an Alpine Linux mirror to fetch packages from.nohttp://dl-cdn.alpinelinux.org/alpine
packagesA list of Alpine packages to install.no""
shell-nameName of the script to run `sh` in the Alpine chroot that will be added to `GITHUB_PATH`. This name should be used in `jobs.<job_id>.steps[*].shell` (e.g. `shell: alpine.sh {0}`) to run the step's script in the chroot. noalpine.sh
volumesA list of directories on the host system to mount bind into the chroot. You can specify the source and destination path: `<src-dir>:<dest-dir>``. The `<src-dir>` is an absolute path of existing directory on the host system, `<dest-dir>` is an absolute path in the chroot (it will be created if doesn't exist). You can omit the latter if they're the same. Please note that /home/runner/work (where's your workspace located) is always mounted, don't specify it here. no""
namedescription
root-pathPath to the created Alpine root directory (also exposed in environment variable ALPINE_ROOT_PATH).