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
36f06289
Commit
36f06289
authored
3 years ago
by
Corné Lukken
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-205
: Prevent globbing in basename
parent
8b43ddee
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
+4
-4
4 additions, 4 deletions
sbin/tag_and_push_docker_image.sh
with
4 additions
and
4 deletions
sbin/tag_and_push_docker_image.sh
+
4
−
4
View file @
36f06289
#!/bin/bash -e
#!/bin/bash -e
function
usage
{
function
usage
{
echo
"./
$(
basename
$0
)
echo
"./
$(
basename
"
$0
"
)
no arguments, downloads remote images and pushes these to ASTRON registry.
no arguments, downloads remote images and pushes these to ASTRON registry.
The versions downloaded are controlled by the docker-compose/.env file"
The versions downloaded are controlled by the docker-compose/.env file"
echo
""
echo
""
echo
"./
$(
basename
$0
)
-h
echo
"./
$(
basename
"
$0
"
)
-h
displays this help message"
displays this help message"
echo
""
echo
""
echo
"./
$(
basename
$0
)
<docker service name> <tag>
echo
"./
$(
basename
"
$0
"
)
<docker service name> <tag>
downloads latest version of image from the ASTRON registry, builds the
downloads latest version of image from the ASTRON registry, builds the
specified service and pushes the image with the specified tag to the
specified service and pushes the image with the specified tag to the
ASTRON registry"
ASTRON registry"
echo
""
echo
""
echo
"./
$(
basename
$0
)
pull <tag>
echo
"./
$(
basename
"
$0
"
)
pull <tag>
downloads all images for the integration test with the specified tag
downloads all images for the integration test with the specified tag
falling back to 'latest' if unavailable. Should neither exist on the
falling back to 'latest' if unavailable. Should neither exist on the
ASTRON registry the script will exit 1. The images are retagged to match
ASTRON registry the script will exit 1. The images are retagged to match
...
...
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