mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-22 22:07:10 +00:00
ci: concurrency improvements
This commit is contained in:
+6
-1
@@ -2,6 +2,10 @@ stages:
|
|||||||
- build
|
- build
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
|
resource_group:
|
||||||
|
name: production
|
||||||
|
process_mode: oldest_first
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
DOCKER_TLS_CERTDIR: /certs
|
DOCKER_TLS_CERTDIR: /certs
|
||||||
DEPLOYMENT_VERSION: $CI_COMMIT_SHA
|
DEPLOYMENT_VERSION: $CI_COMMIT_SHA
|
||||||
@@ -83,6 +87,7 @@ deploy:
|
|||||||
environment:
|
environment:
|
||||||
name: production
|
name: production
|
||||||
url: https://datarush.itqdev.xyz
|
url: https://datarush.itqdev.xyz
|
||||||
|
resource_group: production
|
||||||
script:
|
script:
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- chmod 700 ~/.ssh
|
- chmod 700 ~/.ssh
|
||||||
@@ -106,6 +111,6 @@ deploy:
|
|||||||
docker compose up -d --remove-orphans --force-recreate >> deploy.log 2>&1
|
docker compose up -d --remove-orphans --force-recreate >> deploy.log 2>&1
|
||||||
docker compose ps >> 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
|
EOF
|
||||||
retry: 2
|
retry: 2
|
||||||
|
|||||||
Reference in New Issue
Block a user