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
4112a705
Commit
4112a705
authored
3 years ago
by
Corné Lukken
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-205
: Fix wordsplitting image list in bash
parent
ec9f3644
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!183
Docker image building & pushing with CI pipeline caching
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+5
-0
5 additions, 0 deletions
.gitlab-ci.yml
sbin/tag_and_push_docker_image.sh
+6
-2
6 additions, 2 deletions
sbin/tag_and_push_docker_image.sh
with
11 additions
and
2 deletions
.gitlab-ci.yml
+
5
−
0
View file @
4112a705
...
@@ -70,6 +70,11 @@ docker_store_images_changes:
...
@@ -70,6 +70,11 @@ docker_store_images_changes:
docker_build_image_devices
:
docker_build_image_devices
:
extends
:
.base_docker_images
extends
:
.base_docker_images
script
:
script
:
-
bash $CI_PROJECT_DIR/sbin/tag_and_push_docker_image.sh apsct-sim $tag
-
bash $CI_PROJECT_DIR/sbin/tag_and_push_docker_image.sh apspu-sim $tag
-
bash $CI_PROJECT_DIR/sbin/tag_and_push_docker_image.sh recv-sim $tag
-
bash $CI_PROJECT_DIR/sbin/tag_and_push_docker_image.sh sdptr-sim $tag
-
bash $CI_PROJECT_DIR/sbin/tag_and_push_docker_image.sh unb2-sim $tag
-
bash $CI_PROJECT_DIR/sbin/tag_and_push_docker_image.sh device-apsct $tag
-
bash $CI_PROJECT_DIR/sbin/tag_and_push_docker_image.sh device-apsct $tag
-
bash $CI_PROJECT_DIR/sbin/tag_and_push_docker_image.sh device-apspu $tag
-
bash $CI_PROJECT_DIR/sbin/tag_and_push_docker_image.sh device-apspu $tag
-
bash $CI_PROJECT_DIR/sbin/tag_and_push_docker_image.sh device-boot $tag
-
bash $CI_PROJECT_DIR/sbin/tag_and_push_docker_image.sh device-boot $tag
...
...
This diff is collapsed.
Click to expand it.
sbin/tag_and_push_docker_image.sh
+
6
−
2
View file @
4112a705
...
@@ -112,8 +112,12 @@ if [ ! -z "${1+x}" ] && [ "${1}" == "pull" ]; then
...
@@ -112,8 +112,12 @@ if [ ! -z "${1+x}" ] && [ "${1}" == "pull" ]; then
tag
=
"
${
2
}
"
tag
=
"
${
2
}
"
for
image
in
"
${
LOCAL_IMAGES
[@]
}
"
;
do
for
image
in
"
${
LOCAL_IMAGES
[@]
}
"
;
do
local_url
=
"
${
LOCAL_DOCKER_REGISTRY_HOST
}
/
${
LOCAL_DOCKER_REGISTRY_USER
}
/
${
image
}
"
# Set, splits tuple into $1 and $2. this shadows previous variables
# Pull images, at least one of the two immages must succeed
# shellcheck disable=SC2086
set
--
$image
local_url
=
"
${
LOCAL_DOCKER_REGISTRY_HOST
}
/
${
LOCAL_DOCKER_REGISTRY_USER
}
/
${
1
}
"
# Pull images, at least one of the two images must succeed
echo
"docker pull
${
local_url
}
:
${
tag
}
"
docker pull
"
${
local_url
}
:
${
tag
}
"
||
docker pull
"
${
local_url
}
:latest"
||
exit
1
docker pull
"
${
local_url
}
:
${
tag
}
"
||
docker pull
"
${
local_url
}
:latest"
||
exit
1
done
done
...
...
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