dev #9

Merged
avm merged 100 commits from dev into main 2026-03-17 16:06:44 +03:00
Showing only changes of commit ec176fc9fe - Show all commits

View File

@@ -197,6 +197,11 @@ jobs:
ssh -i ~/.ssh/deploy_key -o StrictHostKeyChecking=no "${DEPLOY_USER}@${DEPLOY_HOST}" "
set -e
# Configure insecure registry if not already configured
if ! grep -q '${REGISTRY_HOST}' /etc/docker/daemon.json 2>/dev/null; then
echo '{\"insecure-registries\": [\"${REGISTRY_HOST}\"]}' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker
fi
cd /opt/mostovik-backend
echo '${REGISTRY_PASSWORD}' | docker login --username '${REGISTRY_USER}' --password-stdin ${REGISTRY_HOST}
export IMAGE_TAG=${BRANCH_TAG}
@@ -246,6 +251,11 @@ jobs:
ssh -i ~/.ssh/deploy_key -o StrictHostKeyChecking=no "${DEPLOY_USER}@${DEPLOY_HOST}" "
set -e
# Configure insecure registry if not already configured
if ! grep -q '${REGISTRY_HOST}' /etc/docker/daemon.json 2>/dev/null; then
echo '{\"insecure-registries\": [\"${REGISTRY_HOST}\"]}' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker
fi
cd /opt/mostovik-backend
echo '${REGISTRY_PASSWORD}' | docker login --username '${REGISTRY_USER}' --password-stdin ${REGISTRY_HOST}
export IMAGE_TAG=${BRANCH_TAG}