ci: add DEPLOY_PATH secret for flexible deployment directory
Build and Deploy / build (push) Successful in 2m44s
Build and Deploy / deploy (push) Successful in 8s

This commit is contained in:
2026-07-17 00:11:23 +00:00
parent 4376cf936a
commit c9f6a30f28
+3 -2
View File
@@ -56,8 +56,9 @@ jobs:
password: ${{ secrets.SSH_PASSWORD }}
port: ${{ secrets.SSH_PORT || 22 }}
script: |
mkdir -p /opt/anticaptcha
cd /opt/anticaptcha
DEPLOY_PATH="${{ secrets.DEPLOY_PATH || '/opt/anticaptcha' }}"
mkdir -p $DEPLOY_PATH
cd $DEPLOY_PATH
if [ ! -f docker-compose.yml ]; then
cat > docker-compose.yml << 'EOF'
services: