Visualizzazione risultati 1 fino 3 di 3

Discussione: [GITHUB WORKFLOW] Automate deploy Altervista

  1. #1
    Data registrazione
    29-07-2014
    Messaggi
    2

    Predefinito [GITHUB WORKFLOW] Automate deploy Altervista

    Hi,
    I'm trying to automate deploy on Altervista using SamKirkland/FTP-Deploy-Action@3.0.0 but I receive a 530 error every time.
    I have tried to connect to my ftp using Windows cmd and it works great.
    Can anyone help me?

    This is my yml file

    Codice:
    # This is a basic workflow to help you get started with Actions
    
    name: Main
    
    # Controls when the action will run. Triggers the workflow on push or pull request
    # events but only for the master branch
    on:
      push:
        branches: [ master ]
    
    # A workflow run is made up of one or more jobs that can run sequentially or in parallel
    jobs:
      # This workflow contains a single job called "FTP-Deploy-Action"
      FTP-Deploy-Action:
        # The type of runner that the job will run on
        runs-on: ubuntu-latest
    
        # Steps represent a sequence of tasks that will be executed as part of the job
        steps:
        # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
        - uses: actions/checkout@master
          with:
            fetch-depth: 2
    
        # Use an FTP-Deploy-Action command
        - name: FTP-Deploy-Action
          uses: SamKirkland/FTP-Deploy-Action@3.0.0
          with:
            ftp-server: ${{ secrets.FTP_SERVER }}
            ftp-username: ${{ secrets.FTP_USERNAME }}
            ftp-password: ${{ secrets.FTP_PASSWORD }}
    
        # Runs a set of commands using the runners shell
        - name: Run a multi-line script
          run: |
            echo Add other actions to build,
            echo test, and deploy your project.
    PS: I have created all secrets on Settings section.

  2. #2
    L'avatar di alemoppo
    alemoppo non è connesso Staff AV
    Data registrazione
    24-08-2008
    Residenza
    PU / BO
    Messaggi
    22,067

    Predefinito

    There is no error on the AlterVista side because the connection is correct with other clients.
    Have you already tried the "--insecure" flag?

    Bye!

  3. #3
    Data registrazione
    29-07-2014
    Messaggi
    2

    Predefinito

    Thanks for your response.

    I have tried but I receive the error below:

    Codice:
    git ftp push --force --auto-init --verbose --syncroot ./ --user *** --passwd *** --insecure ***
      Thu Apr  2 11:05:15 UTC 2020: git-ftp version 1.5.1 running on Linux 3e8267101d07 5.0.0-1032-azure #34-Ubuntu SMP Mon Feb 10 19:37:25 UTC 2020 x86_64 GNU/Linux
      Thu Apr  2 11:05:15 UTC 2020: Forced mode enabled.
      Thu Apr  2 11:05:15 UTC 2020: Auto init if needed.
      Thu Apr  2 11:05:15 UTC 2020: Using syncroot ./ if exists.
      Thu Apr  2 11:05:15 UTC 2020: Insecure SSL/TLS connection allowed
      Thu Apr  2 11:05:15 UTC 2020: Host is '***'.
      Thu Apr  2 11:05:15 UTC 2020: User is '***'.
      Thu Apr  2 11:05:15 UTC 2020: Password is set.
      Thu Apr  2 11:05:15 UTC 2020: CACert is ''.
      Thu Apr  2 11:05:15 UTC 2020: Insecure is '1'.
      Thu Apr  2 11:05:15 UTC 2020: Proxy is ''.
      Thu Apr  2 11:05:15 UTC 2020: Protocol not set, using default protocol ftp://.
      Thu Apr  2 11:05:15 UTC 2020: Path is ''.
      Thu Apr  2 11:05:15 UTC 2020: Syncroot is './'.
      Thu Apr  2 11:05:15 UTC 2020: The remote sha1 is saved in file '.git-ftp.log'.
      Thu Apr  2 11:05:15 UTC 2020: Check if curl is functional.
      Thu Apr  2 11:05:15 UTC 2020: Retrieving last commit from ftp://***:***@***/.
      #=#=#                                                                         
      ##O#- #                                                                       
      ##O=#  #                                                                      
      #=#=-#  #                                                                     
      -#O#- #   #                                                                   
      -=#=#   #   #                                                                 
      -=O#- #  #    #                                                               
      curl: (67) Access denied: 530
      Thu Apr  2 11:05:20 UTC 2020: Check if ftp://***:***@*** is accessible.
      #=#=#                                                                         
      ##O#- #                                                                       
      ##O=#  #                                                                      
      #=#=-#  #                                                                     
      -#O#- #   #                                                                   
      -=#=#   #   #                                                                 
      -=O#- #  #    #                                                               
      curl: (67) Access denied: 530
      Thu Apr  2 11:05:25 UTC 2020: fatal: Can't access remote 'ftp://***:***@***', exiting...
    ⚠️ Failed to upload files
    ##[error]The process 'git' failed with exit code 5
    ⚠️ Error deploying
    ##[error]The process 'git' failed with exit code 5

Regole di scrittura

  • Non puoi creare nuove discussioni
  • Non puoi rispondere ai messaggi
  • Non puoi inserire allegati.
  • Non puoi modificare i tuoi messaggi
  •