Skip to content
Snippets Groups Projects
Verified Commit 7d5ca88e authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[Testing] Pull before building images, otherwise seems to overwrite images

parent 1f68337b
No related branches found
No related tags found
No related merge requests found
...@@ -83,12 +83,12 @@ echo -e "\n==== Remove old images ====" ...@@ -83,12 +83,12 @@ echo -e "\n==== Remove old images ===="
# For some reasons, sometime docker-compose does not pull the newer image. Force this! # For some reasons, sometime docker-compose does not pull the newer image. Force this!
docker-compose config | grep "image:" | cut -d ':' -f 2- | xargs docker image rm || true docker-compose config | grep "image:" | cut -d ':' -f 2- | xargs docker image rm || true
echo -e "\n==== Build custom images ===="
docker-compose build
echo -e "\n==== Pull new versions of external images ====" echo -e "\n==== Pull new versions of external images ===="
docker-compose pull docker-compose pull
echo -e "\n==== Build custom images ===="
docker-compose build
# Except for registry URL, useful to push to production registry after build # Except for registry URL, useful to push to production registry after build
echo -e "\n==== Replace production URL with testing URL in all files ====" echo -e "\n==== Replace production URL with testing URL in all files ===="
for f in $(grep -l -r ".picasoft.net" .); do for f in $(grep -l -r ".picasoft.net" .); do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment