Skip to content
Snippets Groups Projects
Commit 36f06289 authored by Corné Lukken's avatar Corné Lukken
Browse files

L2SS-205: Prevent globbing in basename

parent 8b43ddee
No related branches found
No related tags found
1 merge request!183Docker image building & pushing with CI pipeline caching
#!/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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment