pipeline:
  publish:
    image: appleboy/drone-scp
    settings:
      host: 
        from_secret: jupiterIP
      username: camille
      key: 
        from_secret: DOPrivateKey
      target: /u/jsquotes
      source: ./src
      strip_components: 2
      
  restart:
    image: appleboy/drone-ssh
    settings:
      host: 
        from_secret: jupiterIP
      username: camille
      key: 
        from_secret: DOPrivateKey
      script:
        - docker restart quotes
branches: master
