Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Root
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
cxwx
Root
Commits
116f4e7d
Commit
116f4e7d
authored
1 year ago
by
olemorud
Committed by
Ole Morud
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
[CI] Use root-user inside containers again
parent
81473e89
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/root-ci-config/build_root.py
+0
-9
0 additions, 9 deletions
.github/workflows/root-ci-config/build_root.py
.github/workflows/root-ci.yml
+1
-1
1 addition, 1 deletion
.github/workflows/root-ci.yml
with
1 addition
and
10 deletions
.github/workflows/root-ci-config/build_root.py
+
0
−
9
View file @
116f4e7d
...
@@ -21,7 +21,6 @@ import tarfile
...
@@ -21,7 +21,6 @@ import tarfile
from
hashlib
import
sha1
from
hashlib
import
sha1
import
openstack
import
openstack
import
ctypes
from
build_utils
import
(
from
build_utils
import
(
cmake_options_from_dict
,
cmake_options_from_dict
,
...
@@ -51,14 +50,6 @@ COMPRESSIONLEVEL = 6 if not WINDOWS else 1
...
@@ -51,14 +50,6 @@ COMPRESSIONLEVEL = 6 if not WINDOWS else 1
def
main
():
def
main
():
# openstack.enable_logging(debug=True)
# openstack.enable_logging(debug=True)
try
:
sudo
=
(
os
.
getuid
()
==
0
)
except
AttributeError
:
sudo
=
ctypes
.
windll
.
shell32
.
IsUserAnAdmin
()
!=
0
if
sudo
:
die
(
os
.
EX_USAGE
,
"
Script should not be run with sudo/admin
"
)
# accumulates commands executed so they can be displayed as a script on build failure
# accumulates commands executed so they can be displayed as a script on build failure
shell_log
=
""
shell_log
=
""
...
...
This diff is collapsed.
Click to expand it.
.github/workflows/root-ci.yml
+
1
−
1
View file @
116f4e7d
...
@@ -255,7 +255,7 @@ jobs:
...
@@ -255,7 +255,7 @@ jobs:
container
:
container
:
image
:
registry.cern.ch/root-ci/${{ matrix.image }}:buildready
image
:
registry.cern.ch/root-ci/${{ matrix.image }}:buildready
options
:
'
--security-opt
label=disable
--rm
--userns=keep-id
'
options
:
'
--security-opt
label=disable
--rm'
env
:
env
:
OS_APPLICATION_CREDENTIAL_ID
:
'
7f5b64a265244623a3a933308569bdba'
OS_APPLICATION_CREDENTIAL_ID
:
'
7f5b64a265244623a3a933308569bdba'
OS_APPLICATION_CREDENTIAL_SECRET
:
${{ secrets.OS_APPLICATION_CREDENTIAL_SECRET }}
OS_APPLICATION_CREDENTIAL_SECRET
:
${{ secrets.OS_APPLICATION_CREDENTIAL_SECRET }}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment