Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
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
Container 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
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
119523fd
Commit
119523fd
authored
5 years ago
by
Zuul
Committed by
Gerrit Code Review
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge "CI/Debian: Push images after building"
parents
f8ec9f71
6ab144aa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/setup_gate.sh
+14
-1
14 additions, 1 deletion
tools/setup_gate.sh
with
14 additions
and
1 deletion
tools/setup_gate.sh
+
14
−
1
View file @
119523fd
...
...
@@ -58,6 +58,12 @@ function setup_config {
GATE_IMAGES
=
"cron,haproxy,keepalived,kolla-toolbox,mariadb"
fi
# NOTE(yoctozepto): we cannot build and push at the same time on debian
# buster see https://github.com/docker/for-linux/issues/711.
PUSH
=
"true"
if
[[
"debian"
==
$BASE_DISTRO
]]
;
then
PUSH
=
"false"
fi
cat
<<
EOF
| sudo tee /etc/kolla/kolla-build.conf
[DEFAULT]
namespace = lokolla
...
...
@@ -66,7 +72,7 @@ install_type = ${INSTALL_TYPE}
tag =
${
TAG
}
profile = gate
registry = 127.0.0.1:4000
push =
true
push =
${
PUSH
}
logs_dir = /tmp/logs/build
template_override = /etc/kolla/template_overrides.j2
...
...
@@ -109,6 +115,13 @@ function prepare_images {
sudo
docker run
-d
-p
4000:5000
--restart
=
always
-v
/opt/kolla_registry/:/var/lib/registry
--name
registry registry:2
pushd
"
${
KOLLA_SRC_DIR
}
"
sudo
tox
-e
"build-
${
BASE_DISTRO
}
-
${
INSTALL_TYPE
}
"
# NOTE(yoctozepto): due to debian buster we push after images are built
# see https://github.com/docker/for-linux/issues/711
if
[[
"debian"
==
$BASE_DISTRO
]]
;
then
for
img
in
$(
sudo
docker image
ls
--format
'{{ .Repository }}:{{ .Tag }}'
|
grep
lokolla/
)
;
do
sudo
docker push
$img
;
done
fi
popd
}
...
...
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