dev #2

Merged
webmaster merged 34 commits from dev into main 2025-12-20 20:04:57 +00:00
Showing only changes of commit 8e8bfd1897 - Show all commits

View File

@@ -28,27 +28,39 @@ jobs:
docker build -t merchbay_admin:dev . docker build -t merchbay_admin:dev .
docker save merchbay_admin:dev | gzip > merchbay_admin_dev.tar.gz docker save merchbay_admin:dev | gzip > merchbay_admin_dev.tar.gz
- name: Setup SSH - name: Debug secrets (safe)
shell: sh shell: sh
run: | run: |
set -e echo "== Secrets presence check =="
if [ -z "${DEPLOY_SSH_KEY}" ]; then if [ -z "${DEPLOY_SSH_KEY}" ]; then
echo "❌ DEPLOY_SSH_KEY is EMPTY" echo "❌ DEPLOY_SSH_KEY is EMPTY or NOT SET"
exit 1 else
echo "✅ DEPLOY_SSH_KEY is SET"
echo "Length: ${#DEPLOY_SSH_KEY}"
echo "First line:"
echo "${DEPLOY_SSH_KEY}" | head -n 1
echo "Last line:"
echo "${DEPLOY_SSH_KEY}" | tail -n 1
fi fi
mkdir -p ~/.ssh if [ -z "${DEPLOY_USER}" ]; then
chmod 700 ~/.ssh echo "❌ DEPLOY_USER is EMPTY"
else
echo "✅ DEPLOY_USER = ${DEPLOY_USER}"
fi
echo "${DEPLOY_SSH_KEY}" > ~/.ssh/id_ed25519 if [ -z "${DEPLOY_HOST}" ]; then
chmod 600 ~/.ssh/id_ed25519 echo "❌ DEPLOY_HOST is EMPTY"
else
ssh-keyscan -H ${DEPLOY_HOST} >> ~/.ssh/known_hosts echo "✅ DEPLOY_HOST = ${DEPLOY_HOST}"
fi
env: env:
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }} DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
DEPLOY_USER: ${{ secrets.DEPLOY_USER }}
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
- name: Deploy to Server - name: Deploy to Server
shell: sh shell: sh
run: | run: |