Skip to content

Commit

Permalink
feat: template out uid and gid for kayobe image
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhodgkiss authored Jan 3, 2024
1 parent 453e69d commit b3a463f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions roles/github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ The following variables can be used to make small adjustments to the composition

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

`github_kayobe_user_id`: set the user id when building the kayobe docker image. Default is `1000`

`github_kayobe_group_id`: set the group id when building the kayobe docker image. Default is `1000`

`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`.

`github_kayobe_environments`: list of environments the workflows should target. Only has effect when `github_environment_selector` is `input` or `single`.
Expand Down
4 changes: 4 additions & 0 deletions roles/github/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
github_output_directory: .github/workflows

github_kayobe_user_id: 1000

github_kayobe_group_id: 1000

github_environment_selector:

github_kayobe_environments: []
Expand Down
4 changes: 2 additions & 2 deletions roles/github/templates/build-kayobe-docker-image.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:
workflow_dispatch:

env:
KAYOBE_USER_UID: 1000
KAYOBE_USER_GID: 1000
KAYOBE_USER_UID: %% github_kayobe_user_id %%
KAYOBE_USER_GID: %% github_kayobe_group_id %%

jobs:
prepare-runner:
Expand Down

0 comments on commit b3a463f

Please sign in to comment.