File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 22
33## 1.6.1 (TBD)
44
5+ ### Bug fixes
6+
7+ - We make sure that the automatic cleanup job only runs before deployment (instead of cron schedule cleanup).
8+
59## 1.6.0
610
711### Breaking changes
Original file line number Diff line number Diff line change @@ -268,6 +268,11 @@ split_and_join() {
268268 SPLIT=$( echo $text | sed -e " s/$separator_for_splitting /$separator_for_joining /g" )
269269 echo $SPLIT
270270}
271+ cleanup_docker_images ()
272+ {
273+ echo " Cleaning up the docker images"
274+ /usr/bin/docker system prune -af | sudo tee -a /var/log/docker-prune.log > /dev/null
275+ }
271276
272277docker_stack_deploy () {
273278 echo " Deploying this environment: $ENVIRONMENT_COMPOSE "
@@ -378,6 +383,8 @@ configured_ssh "/opt/opencrvs/infrastructure/setup-deploy-config.sh $HOST"
378383
379384rotate_secrets
380385
386+ cleanup_docker_images
387+
381388docker_stack_deploy
382389
383390echo
Original file line number Diff line number Diff line change 4545 cron :
4646 user : ' {{ crontab_user }}'
4747 name : ' cleanup docker images'
48- minute : ' 0'
49- hour : ' 0'
5048 job : ' /usr/bin/docker system prune -af >> /var/log/docker-prune.log'
49+ state : absent
5150
5251- name : Check if Docker group exists
5352 command : getent group docker
You can’t perform that action at this time.
0 commit comments