Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
LOFAR2.0
tango
Commits
540ef1bf
Commit
540ef1bf
authored
3 years ago
by
Corné Lukken
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-205
: Add more images to automated builds
parent
cbacebc9
No related branches found
No related tags found
1 merge request
!183
Docker image building & pushing with CI pipeline caching
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sbin/tag_and_push_docker_image.sh
+14
-2
14 additions, 2 deletions
sbin/tag_and_push_docker_image.sh
with
14 additions
and
2 deletions
sbin/tag_and_push_docker_image.sh
+
14
−
2
View file @
540ef1bf
...
@@ -41,7 +41,18 @@ fi
...
@@ -41,7 +41,18 @@ fi
LOCAL_IMAGES
=(
LOCAL_IMAGES
=(
"elk elk"
"elk-configure-host elk-configure-host"
"grafana grafana"
"elk elk"
"elk-configure-host elk-configure-host"
"grafana grafana"
"prometheus prometheus"
"lofar-device-base lofar-device-base"
"prometheus prometheus"
"lofar-device-base lofar-device-base"
"jupyter docker-compose_jupyter"
"itango docker-compose_itango"
"apsct-sim docker-compose_apsct-sim"
"apspu-sim docker-compose_apspu-sim"
"recv-sim docker-compose_recv-sim"
"sdptr-sim docker-compose_sdptr-sim"
"unb2-sim docker-compose_unb2-sim"
"device-apsct device-apsct"
"device-apspu device-apspu"
"device-boot device-boot"
"device-docker device-docker"
"device-observation_control device-observation_control"
"device-recv device-recv"
"device-sdp device-sdp"
"device-sst device-sst"
"device-unb2 device-unb2"
"device-xst device-xst"
"itango docker-compose_itango"
"jupyter docker-compose_jupyter"
"integration-test docker-compose_integration-test"
"integration-test docker-compose_integration-test"
"tango-prometheus-exporter docker-compose_tango-prometheus-exporter"
"tango-prometheus-exporter docker-compose_tango-prometheus-exporter"
)
)
...
@@ -102,7 +113,8 @@ if [ ! -z "${1+x}" ] && [ "${1}" == "pull" ]; then
...
@@ -102,7 +113,8 @@ if [ ! -z "${1+x}" ] && [ "${1}" == "pull" ]; then
for
image
in
"
${
LOCAL_IMAGES
[@]
}
"
;
do
for
image
in
"
${
LOCAL_IMAGES
[@]
}
"
;
do
local_url
=
"
${
LOCAL_DOCKER_REGISTRY_HOST
}
/
${
LOCAL_DOCKER_REGISTRY_USER
}
/
${
image
}
"
local_url
=
"
${
LOCAL_DOCKER_REGISTRY_HOST
}
/
${
LOCAL_DOCKER_REGISTRY_USER
}
/
${
image
}
"
docker pull
"
${
local_url
}
:
${
tag
}
"
||
docker pull
"
${
local_url
}
:latest"
# Pull images, at least one of the two immages must succeed
docker pull
"
${
local_url
}
:
${
tag
}
"
||
docker pull
"
${
local_url
}
:latest"
||
exit
1
done
done
exit
0
exit
0
...
...
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