mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-22 22:07:10 +00:00
ci: fixed VERSION setting
This commit is contained in:
+2
-1
@@ -93,6 +93,8 @@ deploy:
|
||||
- AUTH_COMMAND="echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY --username $CI_REGISTRY_USER --password-stdin";
|
||||
- ssh -p $SSH_PORT $SSH_ADDRESS "$AUTH_COMMAND" > /dev/null 2>&1
|
||||
|
||||
- SET_VERSION="echo "VERSION=$DEPLOYMENT_VERSION" > ~/deploy/.env"
|
||||
|
||||
- scp -P $SSH_PORT -C -r infrastructure/ compose.yaml $SSH_ADDRESS:~/deploy/ > /dev/null 2>&1
|
||||
- |
|
||||
ssh -p $SSH_PORT $SSH_ADDRESS > /dev/null 2>&1 <<'EOF'
|
||||
@@ -100,7 +102,6 @@ deploy:
|
||||
|
||||
docker system prune --force > deploy.log 2>&1
|
||||
|
||||
export VERSION="$DEPLOYMENT_VERSION"
|
||||
docker compose pull --policy always -q > deploy.log 2>&1
|
||||
docker compose up -d --remove-orphans --force-recreate >> deploy.log 2>&1
|
||||
docker compose ps >> deploy.log 2>&1
|
||||
|
||||
+5
-5
@@ -149,7 +149,7 @@ services:
|
||||
restart: unless-stopped
|
||||
|
||||
redis:
|
||||
image: docker.io/redis:7-alpine3.21
|
||||
image: docker.io/redis:7.2-alpine
|
||||
command: redis-server /usr/local/etc/redis/redis.conf
|
||||
configs:
|
||||
- source: redis_config
|
||||
@@ -189,7 +189,7 @@ services:
|
||||
shm_size: 4mb
|
||||
|
||||
postgres:
|
||||
image: docker.io/postgres:17-alpine3.21
|
||||
image: docker.io/postgres:17.4-alpine
|
||||
configs:
|
||||
- source: postgres_config
|
||||
target: /etc/postgresql/postgresql.conf
|
||||
@@ -302,8 +302,8 @@ services:
|
||||
target: /etc/grafana/scripts
|
||||
|
||||
minio:
|
||||
command: server --console-address ":9001"
|
||||
image: docker.io/minio/minio:RELEASE.2025-02-03T21-03-04Z
|
||||
command: server --console-address ":9001"
|
||||
healthcheck:
|
||||
test: ["CMD", "mc", "ready", "local"]
|
||||
interval: 1m30s
|
||||
@@ -334,7 +334,7 @@ services:
|
||||
target: /data
|
||||
|
||||
prometheus:
|
||||
image: docker.io/prom/prometheus:v3.1.0
|
||||
image: docker.io/prom/prometheus:v3.2.1
|
||||
command:
|
||||
- "--config.file=/etc/prometheus/prometheus.yaml"
|
||||
configs:
|
||||
@@ -413,7 +413,7 @@ services:
|
||||
target: /tmp
|
||||
|
||||
proxy:
|
||||
image: docker.io/nginx:1.27-alpine3.21
|
||||
image: docker.io/nginx:1.27-alpine
|
||||
configs:
|
||||
- source: nginx_config
|
||||
target: /etc/nginx/nginx.conf
|
||||
|
||||
Reference in New Issue
Block a user