mirror of
https://gitea.com/gitea/act_runner.git
synced 2026-08-14 06:51:52 +02:00
The runner is an application, not a library. `act/model` and `act/exprparser` were the last packages anything outside this repository consumed and they now live in actionslib, so nothing needs the rest of `act` to be importable, and keeping it importable invites the coupling that was just removed. Import paths only, the files are unchanged. Assisted-by: Codet:GPT-5.1-Codex
31 lines
801 B
YAML
31 lines
801 B
YAML
name: container-hostname
|
|
on: push
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
jobs:
|
|
with-hostname:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: node:24-bookworm-slim
|
|
options: "--hostname my.host.local --user 100:101"
|
|
steps:
|
|
- run: |
|
|
echo "UID: $(id -u)"
|
|
echo "GID: $(id -g)"
|
|
echo "HOST: $(uname -n)"
|
|
[[ "$(id -u)" == "100" ]] && [[ "$(id -g)" == "101" ]] && [[ "$(uname -n)" == "my.host.local" ]]
|
|
|
|
default-hostname:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: node:24-bookworm-slim
|
|
steps:
|
|
- run: |
|
|
echo "UID: $(id -u)"
|
|
echo "GID: $(id -g)"
|
|
echo "HOST: $(uname -n)"
|
|
[[ "$(id -u)" == "0" ]] && [[ "$(id -g)" == "0" ]] && [[ $(uname -n) ]] && [[ "$(uname -n)" != "my.host.local" ]]
|