Commit d58d67c0 authored by nanahira's avatar nanahira

add ci deploy server

parent ce9b8d1a
Pipeline #41408 canceled with stages
in 5 seconds
...@@ -174,3 +174,31 @@ upload_to_minio: ...@@ -174,3 +174,31 @@ upload_to_minio:
- aws s3 --endpoint=https://minio.moenext.com:9000 sync --delete dist/ s3://mycard/libocgcore-koishi - aws s3 --endpoint=https://minio.moenext.com:9000 sync --delete dist/ s3://mycard/libocgcore-koishi
only: only:
- master - master
.deploy_to_server:
stage: deploy
tags:
- linux
dependencies:
- build_linux_x64
variables:
SERVER_USER: nanahira
SERVER_HOST: koishi.momobako.com
FROM_PATH: ''
SERVER_PATH: ''
script:
- apt update && apt -y install openssh-client rsync coreutils
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan $SERVER_HOST >> ~/.ssh/known_hosts
- echo $NANAHIRA_SSH_KEY | base64 --decode > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/*
- rsync -4cavzP $FROM_PATH $SERVER_USER@$SERVER_HOST:$SERVER_PATH
deploy_888:
extends: .deploy_to_server
variables:
FROM_PATH: 'dist/x64/libocgcore.so'
SERVER_PATH: '~/ygopro-super-pre/bin/release/'
only:
- '888'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment