.gitlab-ci.yml 424 Bytes
Newer Older
German Adolfo Faller Farias's avatar
CICD  
German Adolfo Faller Farias committed
1 2 3
stages:
  - deploy

German Adolfo Faller Farias's avatar
CI-CD  
German Adolfo Faller Farias committed
4 5
image: faller222/alpine-ssh

German Adolfo Faller Farias's avatar
CICD  
German Adolfo Faller Farias committed
6 7 8 9 10 11 12 13 14 15
deploy:
  stage: deploy
  only:
    - master
  variables:
    GIT_STRATEGY: none
  script:
    - echo "$SSH_KEY" > sshKeyFile
    - chmod 400 sshKeyFile
    # Batch
German Adolfo Faller Farias's avatar
CI-CD  
German Adolfo Faller Farias committed
16 17
    - ssh -p 2222 -o "StrictHostKeyChecking no" -i sshKeyFile -t root@pgrado.faller.com.uy "/data/kill"
    - ssh -p 2222 -o "StrictHostKeyChecking no" -i sshKeyFile -t root@pgrado.faller.com.uy "/data/getGit"