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 GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| apk-tools-url | URL 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. | no | https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic/v2.14.10/x86_64/apk.static#!sha256!34bb1a96f0258982377a289392d4ea9f3f4b767a4bb5806b1b87179b79ad8a1c |
| arch | CPU 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` | no | x86_64 |
| branch | Alpine branch (aka release) to install (e.g. `v3.15`, `latest-stable`, `edge`). | no | latest-stable |
| extra-keys | A 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-repositories | A list of additional Alpine repositories to add into /etc/apk/repositories (Alpine's official main and community repositories are always added). | no | "" |
| mirror-url | URL of an Alpine Linux mirror to fetch packages from. | no | http://dl-cdn.alpinelinux.org/alpine |
| packages | A list of Alpine packages to install. | no | "" |
| shell-name | Name 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. | no | alpine.sh |
| volumes | A 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 | "" |
Outputs
| name | description |
|---|---|
| root-path | Path to the created Alpine root directory (also exposed in environment variable ALPINE_ROOT_PATH). |