diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a40505c..85f3055 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,10 @@ stages: - build - deploy +resource_group: + name: production + process_mode: oldest_first + variables: DOCKER_TLS_CERTDIR: /certs DEPLOYMENT_VERSION: $CI_COMMIT_SHA @@ -83,6 +87,7 @@ deploy: environment: name: production url: https://datarush.itqdev.xyz + resource_group: production script: - mkdir -p ~/.ssh - chmod 700 ~/.ssh @@ -106,6 +111,6 @@ deploy: docker compose up -d --remove-orphans --force-recreate >> deploy.log 2>&1 docker compose ps >> deploy.log 2>&1 - nohup docker system prune --force >> deploy.log 2>&1 & + nohup docker system prune -a --force >> deploy.log 2>&1 & EOF retry: 2