美文网首页
GitLab CI上传

GitLab CI上传

作者: 诺之林 | 来源:发表于2021-04-08 09:35 被阅读0次

    本文基于GitLab CI简介 & GitLab CI使用

    FTP

    Pure-FTPd

    sudo apt install -y pure-ftpd
    
    sudo pure-pw useradd admin -u op -d /home/op/
    # Password: 123456
    
    sudo pure-pw mkdb
    
    cd /etc/pure-ftpd/auth
    
    sudo ln -s ../conf/PureDB 60puredb
    
    sudo /etc/init.d/pure-ftpd restart
    
    ftp localhost
    # admin | 123456
    
    dir
    

    LFTP

    sudo apt install -y lftp
    
    cd /tmp
    
    echo "123" >> README.md
    
    lftp -c "set ftp:ssl-allow no; open -u admin,123456 122.51.81.66:21; mkdir -p daily; cd daily; put README.md"
    
    lftp ftp://admin@122.51.81.66:21
    # 123456
    
    ls
    

    OSS

    wget http://gosspublic.alicdn.com/ossutil/1.7.2/ossutil64
    
    chmod 755 ossutil64
    
    ./ossutil64 config -e ${OSS_ENDPOINT} -i ${OSS_ACCESS_KEY_ID} -k ${OSS_ACCESS_KEY_SECRET} -L CH --loglevel debug -c ~/.ossutilconfig
    # OSS_ENDPOINT=oss-cn-hangzhou.aliyuncs.com
    
    ./ossutil64 -c ~/.ossutilconfig mkdir oss://share-yl/daily
    
    ./ossutil64 -c ~/.ossutilconfig cp -r dist/ oss://share-yl/daily/
    

    参考

    相关文章

      网友评论

          本文标题:GitLab CI上传

          本文链接:https://www.haomeiwen.com/subject/nsmukltx.html