s4ros icon

.gitlab-ci.yml

s4ros | PRO | 01/30/22 01:10:09 PM UTC | 0 ⭐ | 5803 👁️ | Never ⏰ | []
YAML |

620 B

|

None

|

0 👍

/

0 👎

default:
  image: ubuntu:20.04
 
variables:
  SSH_OPTS: '-o StrictHostKeyChecking=no -o PasswordAuthentication=no -o PubkeyAuthentication=yes'
 
.prepare-ssh-client: &prepare-ssh-client
  - export DEBIAN_FRONTEND=noninteractive
  - command -v ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
  - eval $(ssh-agent -s)
  - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
  - mkdir -p ~/.ssh
  - chmod 700 ~/.ssh
 
deploy_dev:
  rules:
    - if: $CI_COMMIT_BRANCH == 'main'
  before_script:
    - *prepare-ssh-client
  script: |
      ssh ${SSH_OPTS} ubuntu@uuuuu "
        ./update.sh
      "

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎