File tree 1 file changed +19
-2
lines changed
1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 14
14
required : false
15
15
default : ' '
16
16
type : " string"
17
-
17
+ kernel_modules :
18
+ description : " Volume map host kernel /lib/modules into docker container"
19
+ default : true
20
+ type : boolean
21
+ disable_apparmor :
22
+ description : " Disable and stop apparmor"
23
+ default : false
24
+ type : boolean
18
25
19
26
jobs :
20
27
68
75
- name : " Checkout"
69
76
uses : " actions/checkout@v4"
70
77
78
+ - name : " Disable Apparmor"
79
+ if : ${{ inputs.disable_apparmor }}
80
+ run : |
81
+ if command -v apparmor_parser >/dev/null ; then
82
+ sudo find /etc/apparmor.d/ -maxdepth 1 -type f -exec ln -sf {} /etc/apparmor.d/disable/ \;
83
+ sudo apparmor_parser -R /etc/apparmor.d/disable/* || true
84
+ sudo systemctl disable apparmor
85
+ sudo systemctl stop apparmor
86
+ fi
87
+
71
88
- name : " Setup ruby"
72
89
uses : " ruby/setup-ruby@v1"
73
90
with :
82
99
83
100
- name : " Provision environment"
84
101
run : |
85
- if [[ "${{matrix.platforms.provider}}" == " docker" ]]; then
102
+ if [[ "${{ inputs.kernel_modules }}" == "true" ]] && [[ "${{ matrix.platforms.provider}}" =~ docker* ]] ; then
86
103
DOCKER_RUN_OPTS="docker_run_opts: {'--volume': '/lib/modules/$(uname -r):/lib/modules/$(uname -r)'}"
87
104
else
88
105
DOCKER_RUN_OPTS=''
You can’t perform that action at this time.
0 commit comments