@@ -6,7 +6,9 @@ Software builds can be built there using a [Nexus Repository](https://de.sonatyp
6
6
7
7
Support: If you need help or a feature just open an issue!
8
8
9
- Available Containers:
9
+ Package / Images: ghcr.io/fullstack-devops/github-actions-runner
10
+
11
+ Available Tags:
10
12
| Name (tag) | Installed Tools/ Software | Description |
11
13
| -------------------------| -----------------------------------------------------------------------------------------------------------| ----------------------------------------------------------------------------------------------------------------------------------|
12
14
| ` base-latest ` | libffi-dev, libicu-dev, build-essential, libssl-dev, ca-certificates, jq, sed, grep, git, curl, wget, zip | Base runner with nothing fancy installed <br > [ Dockerfile] ( images/base/Dockerfile ) |
@@ -42,57 +44,47 @@ For the helm values see the [values.yaml](helm/values.yaml), section `envValues`
42
44
43
45
## Examples
44
46
45
- ### docker or podman
47
+ ### docker
46
48
47
49
If you are using ` docker ` or ` podman ` the options and commands are basically the same.
48
50
49
51
Run registerd to an Organisation:
50
52
``` bash
51
- podman run -e GH_ORG=fullstack-devops -e GH_ACCESS_TOKEN=ghp_**** github-runner-base:latest
53
+ docker run -e GH_ORG=fullstack-devops -e GH_ACCESS_TOKEN=ghp_**** github-runner-base:latest
52
54
```
53
55
54
56
Run registerd to an Organisation and Repo:
55
57
``` bash
56
- podman run -e GH_ORG=fullstack-devops -e GH_REPO=github-runner-testing -e GH_ACCESS_TOKEN=ghp_**** github-runner-base:latest
58
+ docker run -e GH_ORG=fullstack-devops -e GH_REPO=github-runner-testing -e GH_ACCESS_TOKEN=ghp_**** github-runner-base:latest
57
59
```
58
60
59
61
> Replace the ` ghp_**** ` with your own valid personal access token
60
62
61
63
### docker-compose
62
64
63
- ``` yaml
64
- version : " 3"
65
-
66
- services :
67
- github-runner :
68
- image : github-runner-base:latest
69
- environment :
70
- GH_ORG : fullstack-devops
71
- GH_ACCESS_TOKEN : ghp_****
65
+ ``` bash
66
+ cd examples/docker-compose
67
+ docker-compose up -d
72
68
```
73
69
74
- Build images with kaniko:
75
- ` ` ` yaml
76
- version : " 3"
77
-
78
- volumes :
79
- kaniko_workspace :
80
- driver : local
81
-
82
- services :
83
- github-action-runner :
84
- image : ghcr.io/fullstack-devops/github-actions-runner:base-latest
85
- environment :
86
- GH_ORG : fullstack-devops
87
- GH_ACCESS_TOKEN : ghp_****
88
- KANIKO_ENABLED : " true"
89
- volumes :
90
- - kaniko_workspace:/kaniko/workspace
91
-
92
- github-action-runner-kaniko :
93
- image : ghcr.io/fullstack-devops/github-actions-runner:kaniko-sidecar-latest
94
- volumes :
95
- - kaniko_workspace:/kaniko/workspace
70
+ ### podman
71
+
72
+ Setup exchange directory (only nessesarry until podman supports emptyDir volumes)
73
+ ``` bash
74
+ mkdir /tmp/delme
75
+ ```
76
+
77
+ Starting GitHub runner with podman
78
+ ``` bash
79
+ cd examples/podman
80
+
81
+ podman play kube deployment.yml
82
+ ```
83
+
84
+ Removing GitHub runner an dumps
85
+ ``` bash
86
+ podman pod rm gh-runner-kaniko -f
87
+ rm -rf /tmp/delme
96
88
```
97
89
98
90
### kubernetes pod
@@ -101,27 +93,34 @@ services:
101
93
apiVersion : v1
102
94
kind : Pod
103
95
metadata :
104
- name : gha -runner-kaniko
96
+ name : gh -runner-kaniko
105
97
spec :
106
98
volumes :
107
99
- name : workspace-volume
108
100
emptyDir : {}
109
101
containers :
110
- - name : github-actions-runner
111
- image : ghcr.io/fullstack-devops/github-actions-runner:base -latest
102
+ - name : kaniko
103
+ image : ghcr.io/fullstack-devops/github-actions-runner:kaniko-sidecar -latest
112
104
resources : {}
113
105
volumeMounts :
114
106
- name : workspace-volume
115
- mountPath : /kaniko/workspace/
116
- imagePullPolicy : Never
107
+ mountPath : /kaniko/workspace/
108
+ imagePullPolicy : IfNotPresent
117
109
tty : true
118
- - name : kaniko-sidecar
119
- image : ghcr.io/fullstack-devops/github-actions-runner:kaniko-sidecar -latest
110
+ - name : github-actions-runner
111
+ image : ghcr.io/fullstack-devops/github-actions-runner:base -latest
120
112
resources : {}
113
+ env :
114
+ - name : GH_ORG
115
+ value : " fullstack-devops"
116
+ - name : KANIKO_ENABLED
117
+ value : true
118
+ - name : GH_ACCESS_TOKEN
119
+ value : " ghp_*****"
121
120
volumeMounts :
122
121
- name : workspace-volume
123
122
mountPath : /kaniko/workspace/
124
- imagePullPolicy : Never
123
+ imagePullPolicy : IfNotPresent
125
124
restartPolicy : Never
126
125
` ` `
127
126
0 commit comments