Skip to content
Snippets Groups Projects
.gitlab-ci.yml 897 B
Newer Older
  • Learn to ignore specific revisions
  • Tóth Miklós Tibor's avatar
    Tóth Miklós Tibor committed
    image: kroniak/ssh-client
    
    stages:
      - deploy
    
    home:
      stage: deploy
      before_script:
        - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
        - eval $(ssh-agent -s)
        - echo "$SSH" | tr -d '\r' | ssh-add -
        - mkdir -p ~/.ssh/socket
        - chmod 700 ~/.ssh
        - cp .magic_ssh_config ~/.ssh/config
      script:
    
    Tóth Miklós Tibor's avatar
    Tóth Miklós Tibor committed
        # AFS magic incoming
        - ssh mikewashere@centaur.sch.bme.hu cp /afs/sch.bme.hu/home/mikewashere/.system/mikewashere.keytab /tmp/
        - ssh mikewashere@centaur.sch.bme.hu kinit -k -t /tmp/mikewashere.keytab mikewashere
        - ssh mikewashere@centaur.sch.bme.hu rm /tmp/mikewashere.keytab
        - ssh mikewashere@centaur.sch.bme.hu aklog sch.bme.hu -k SCH.BME.HU
    
    Tóth Miklós Tibor's avatar
    Tóth Miklós Tibor committed
        - ssh mikewashere@centaur.sch.bme.hu mkdir -p ~/public_html/linux
    
    Tóth Miklós Tibor's avatar
    Tóth Miklós Tibor committed
        # actual work
    
    Tóth Miklós Tibor's avatar
    Tóth Miklós Tibor committed
        - scp -R . mikewashere@centaur.sch.bme.hu:~/public_html/linux/.
      only:
        refs:
          - master