Skip to content

Commit b3a463f

Browse files
authored
feat: template out uid and gid for kayobe image
1 parent 453e69d commit b3a463f

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

roles/github/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ The following variables can be used to make small adjustments to the composition
3636

3737
`github_output_directory`: control the location where the workflows shall be written to.
3838

39+
`github_kayobe_user_id`: set the user id when building the kayobe docker image. Default is `1000`
40+
41+
`github_kayobe_group_id`: set the group id when building the kayobe docker image. Default is `1000`
42+
3943
`github_environment_selector`: control the type of environment support the workflows should be generated with. Either `single` for fixed environment or `input` whereby the environment is controlled at `workflow_dispatch`. No environment is the default by setting `github_environment_selector` to no value or `Null`.
4044

4145
`github_kayobe_environments`: list of environments the workflows should target. Only has effect when `github_environment_selector` is `input` or `single`.

roles/github/defaults/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
---
22
github_output_directory: .github/workflows
33

4+
github_kayobe_user_id: 1000
5+
6+
github_kayobe_group_id: 1000
7+
48
github_environment_selector:
59

610
github_kayobe_environments: []

roles/github/templates/build-kayobe-docker-image.yml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ on:
1010
workflow_dispatch:
1111

1212
env:
13-
KAYOBE_USER_UID: 1000
14-
KAYOBE_USER_GID: 1000
13+
KAYOBE_USER_UID: %% github_kayobe_user_id %%
14+
KAYOBE_USER_GID: %% github_kayobe_group_id %%
1515

1616
jobs:
1717
prepare-runner:

0 commit comments

Comments
 (0)