403Webshell
Server IP : 35.236.43.222  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64
User : deploy ( 1002)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/orderform.info/public/.github/workflows/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/orderform.info/public/.github/workflows/deploy.yml
name: deploy

on:
  push:
    branches: ["main"]

jobs:
  deploy:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Install dependencies
        run: |
          set -eux
          sudo apt-get update
          sudo apt-get install -y rsync openssh-client

      - name: Write SSH key and deploy
        env:
          HOST: ${{ secrets.DEPLOY_HOST }}
          USER: ${{ secrets.DEPLOY_USER }}
          DEST: ${{ secrets.DEPLOY_PATH }}
          DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
        run: |
          set -euxo pipefail

          mkdir -p ~/.ssh
          chmod 700 ~/.ssh

          # Write the private key exactly as stored in the GitHub secret (preserves newlines)
          cat > ~/.ssh/id_ed25519 <<EOF
          $DEPLOY_KEY
          EOF
          chmod 600 ~/.ssh/id_ed25519

          # Validate key parses (fails fast if secret is malformed)
          ssh-keygen -y -f ~/.ssh/id_ed25519 >/dev/null

          # Trust the VM host key for this run
          ssh-keyscan -H "$HOST" >> ~/.ssh/known_hosts

          # Deploy repo contents to the destination directory on the VM
          rsync -az --delete \
            -e "ssh -i ~/.ssh/id_ed25519" \
            ./ "$USER@$HOST:$DEST/"

Youez - 2016 - github.com/yon3zu
LinuXploit