Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zzha zzha
OpenXG-RAN
Commits
64458b5d
Commit
64458b5d
authored
Jan 24, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cls_containerize: harmonize two ifs into one
parent
2a3bd726
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
ci-scripts/cls_containerize.py
ci-scripts/cls_containerize.py
+1
-2
No files found.
ci-scripts/cls_containerize.py
View file @
64458b5d
...
...
@@ -424,14 +424,13 @@ class Containerize():
# Let's remove any previous run artifacts if still there
cmd
.
run
(
f"
{
self
.
cli
}
image prune --force"
)
if
forceBaseImageBuild
:
cmd
.
run
(
f"
{
self
.
cli
}
image rm
{
baseImage
}
:
{
baseTag
}
"
)
for
image
,
pattern
,
name
,
option
in
imageNames
:
cmd
.
run
(
f"
{
self
.
cli
}
image rm
{
name
}
:
{
imageTag
}
"
)
# Build the base image only on Push Events (not on Merge Requests)
# On when the base image docker file is being modified.
if
forceBaseImageBuild
:
cmd
.
run
(
f"
{
self
.
cli
}
image rm
{
baseImage
}
:
{
baseTag
}
"
)
cmd
.
run
(
f"
{
self
.
cli
}
build
{
self
.
cliBuildOptions
}
--target
{
baseImage
}
--tag
{
baseImage
}
:
{
baseTag
}
--file docker/Dockerfile.base
{
self
.
dockerfileprefix
}
. &> cmake_targets/log/ran-base.log"
,
timeout
=
1600
)
# First verify if the base image was properly created.
ret
=
cmd
.
run
(
f"
{
self
.
cli
}
image inspect --format=
\'
Size = {{{{.Size}}}} bytes
\'
{
baseImage
}
:
{
baseTag
}
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment