Skip to content
Snippets Groups Projects
Commit cfecd666 authored by Jens Thomae's avatar Jens Thomae
Browse files

fix: docker volume getting bloated

Now executing docker system prune before every run to clean unnecessary data and prevent volume from reaching 100%.
parent 6c2a862e
Branches
No related tags found
1 merge request!31Improved CD Pipeline which now works for automated deployment via http.
Pipeline #1666048 passed
......@@ -7,6 +7,8 @@ deploy_test:
variables:
DOCKER_HOST: unix:///var/run/docker.sock
script:
- echo "Clearing docker data..."
- docker system prune
- echo "Deploying application to test server..."
- docker volume create nustar_data || true
- docker volume create nustar_public_media || true
......@@ -35,6 +37,8 @@ deploy_production:
variables:
DOCKER_HOST: unix:///var/run/docker.sock
script:
- echo "Clearing docker data..."
- docker system prune
- echo "Deploying application to production server..."
- docker volume create nustar_data || true
- docker volume create mongo_data || true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment