6 Commits

Author SHA1 Message Date
avm
5eed8ec877 Merge dev into main
All checks were successful
CI/CD Pipeline / Quality Gate (push) Successful in 24s
Deploy Customer Main / Build, Push, Deploy (push) Successful in 5m3s
CI/CD Pipeline / Build and Push Images (push) Successful in 10s
CI/CD Pipeline / Internal Notify (push) Successful in 0s
CI/CD Pipeline / Deploy Dev in Dokploy (push) Successful in 1s
Pin customer deploy workflow to backend runner.
2026-05-05 10:20:10 +03:00
f54aa4cb0b ci: pin customer deploy to backend runner
All checks were successful
CI/CD Pipeline / Quality Gate (push) Successful in 26s
CI/CD Pipeline / Quality Gate (pull_request) Successful in 18s
CI/CD Pipeline / Build and Push Images (push) Successful in 11s
CI/CD Pipeline / Build and Push Images (pull_request) Successful in 1s
CI/CD Pipeline / Internal Notify (push) Successful in 0s
CI/CD Pipeline / Deploy Dev in Dokploy (push) Successful in 1s
CI/CD Pipeline / Internal Notify (pull_request) Successful in 0s
CI/CD Pipeline / Deploy Dev in Dokploy (pull_request) Successful in 1s
2026-05-05 09:19:42 +02:00
avm
5d583edfaa Merge dev into main
All checks were successful
CI/CD Pipeline / Quality Gate (push) Successful in 22s
CI/CD Pipeline / Build and Push Images (push) Successful in 4s
CI/CD Pipeline / Internal Notify (push) Successful in 1s
CI/CD Pipeline / Deploy Dev in Dokploy (push) Successful in 1s
Deploy Customer Main / Build, Push, Deploy (push) Successful in 17m31s
Merge dev into main for customer deploy.
2026-05-05 01:35:05 +03:00
d082cb3885 ci: serialize customer deploys
All checks were successful
CI/CD Pipeline / Quality Gate (push) Successful in 18s
CI/CD Pipeline / Quality Gate (pull_request) Successful in 18s
CI/CD Pipeline / Build and Push Images (push) Successful in 4s
CI/CD Pipeline / Build and Push Images (pull_request) Successful in 1s
CI/CD Pipeline / Internal Notify (push) Successful in 1s
CI/CD Pipeline / Deploy Dev in Dokploy (push) Successful in 1s
CI/CD Pipeline / Internal Notify (pull_request) Successful in 0s
CI/CD Pipeline / Deploy Dev in Dokploy (pull_request) Successful in 1s
2026-05-05 00:34:36 +02:00
avm
e963fb128c Merge dev into main
Some checks failed
CI/CD Pipeline / Quality Gate (push) Successful in 19s
CI/CD Pipeline / Build and Push Images (push) Successful in 9s
CI/CD Pipeline / Internal Notify (push) Has been cancelled
CI/CD Pipeline / Deploy Dev in Dokploy (push) Has been cancelled
Deploy Customer Main / Build, Push, Deploy (push) Has been cancelled
Merge dev into main for customer deploy.
2026-05-05 01:20:01 +03:00
3d9d143f7e ci: push customer images with docker buildx
Some checks failed
CI/CD Pipeline / Quality Gate (push) Successful in 17s
CI/CD Pipeline / Quality Gate (pull_request) Successful in 17s
CI/CD Pipeline / Build and Push Images (push) Has been cancelled
CI/CD Pipeline / Internal Notify (push) Has been cancelled
CI/CD Pipeline / Deploy Dev in Dokploy (push) Has been cancelled
CI/CD Pipeline / Build and Push Images (pull_request) Successful in 0s
CI/CD Pipeline / Internal Notify (pull_request) Successful in 0s
CI/CD Pipeline / Deploy Dev in Dokploy (pull_request) Failing after 0s
2026-05-05 00:18:04 +02:00

View File

@@ -24,7 +24,7 @@ env:
jobs:
deploy:
name: Build, Push, Deploy
runs-on: ubuntu-latest
runs-on: [backend-docker]
timeout-minutes: 90
steps:
@@ -78,12 +78,15 @@ jobs:
exit 1
fi
- name: Install crane
- name: Setup Docker Buildx
run: |
set -euo pipefail
curl -fsSL https://github.com/google/go-containerregistry/releases/download/v0.19.0/go-containerregistry_Linux_x86_64.tar.gz \
| tar xz crane
chmod +x crane
if ! docker buildx inspect customer-builder >/dev/null 2>&1; then
docker buildx create --name customer-builder --driver docker-container --use
else
docker buildx use customer-builder
fi
docker buildx inspect --bootstrap
- name: Build and push customer images
env:
@@ -103,31 +106,29 @@ jobs:
celery_ref="${registry_path}/${CUSTOMER_CELERY_IMAGE}"
printf '%s' "${registry_password}" \
| ./crane auth login "${CUSTOMER_REGISTRY_HOST}" \
| docker login "${CUSTOMER_REGISTRY_HOST}" \
-u "${registry_user}" \
--password-stdin
docker build \
docker buildx build \
--platform linux/amd64 \
-f ./docker/Dockerfile \
--target runtime-web \
--build-arg INSTALL_DEV=false \
-t customer-mostovik-backend-web:local \
--push \
-t "${web_ref}:latest" \
-t "${web_ref}:${sha_short}" \
.
docker save customer-mostovik-backend-web:local -o /tmp/customer-mostovik-backend-web.tar
./crane push /tmp/customer-mostovik-backend-web.tar "${web_ref}:latest"
./crane push /tmp/customer-mostovik-backend-web.tar "${web_ref}:${sha_short}"
docker build \
docker buildx build \
--platform linux/amd64 \
-f ./docker/Dockerfile \
--target runtime-celery \
--build-arg INSTALL_DEV=false \
-t customer-mostovik-backend-celery:local \
--push \
-t "${celery_ref}:latest" \
-t "${celery_ref}:${sha_short}" \
.
docker save customer-mostovik-backend-celery:local -o /tmp/customer-mostovik-backend-celery.tar
./crane push /tmp/customer-mostovik-backend-celery.tar "${celery_ref}:latest"
./crane push /tmp/customer-mostovik-backend-celery.tar "${celery_ref}:${sha_short}"
- name: Deploy customer stack
env:
@@ -165,9 +166,7 @@ jobs:
)
proxy_command="ssh -i ${key_path} -o BatchMode=yes -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o GlobalKnownHostsFile=/dev/null -o LogLevel=ERROR -o ConnectTimeout=15 -W %h:%p ${CUSTOMER_SSH_PROXY_HOST}"
remote_command="set -euo pipefail
cd /ecos
FORCE_PULL=1 COMPOSE_FILE='${CUSTOMER_COMPOSE_FILE}' '${CUSTOMER_DEPLOY_SCRIPT}'
docker image prune -f"
flock -w 1800 /tmp/ecos-customer-deploy.lock /bin/sh -c 'cd /ecos && FORCE_PULL=1 COMPOSE_FILE=\"${CUSTOMER_COMPOSE_FILE}\" \"${CUSTOMER_DEPLOY_SCRIPT}\" && docker image prune -f'"
ssh "${ssh_common[@]}" -o "ProxyCommand=${proxy_command}" "${CUSTOMER_DEPLOY_USER}@${CUSTOMER_DEPLOY_HOST}" "true"
ssh "${ssh_common[@]}" -o "ProxyCommand=${proxy_command}" "${CUSTOMER_DEPLOY_USER}@${CUSTOMER_DEPLOY_HOST}" "${remote_command}"