Commit 5a1303c2 authored by nanahira's avatar nanahira

add update hash calc

parent 73c69897
......@@ -19,6 +19,7 @@ redtext:
- mkdir dist
- cd ygopro
- mv ../expansions .
- echo "# Result of redtext test of commit $CI_COMMIT_SHA"
- echo "select id from datas;" | sqlite3 $DATABASE_FILE | xargs -I {} ./ygopro {} 2>&1 | tee ../dist/redtext.txt
- cd ..
artifacts:
......@@ -35,20 +36,27 @@ deploy_to_ygopro_server:
- mkdir ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan 222diy.momobako.com >> ~/.ssh/known_hosts
- chmod 600 ~/.ssh/*
- echo $NANAHIRA_SSH_KEY | base64 --decode > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/*
- rsync -4cavz --exclude=pics --delete ./expansions/ nanahira@222diy.momobako.com:~/ygopro/expansions
only:
- master
#hash:
# stage: stage1
# dependencies: []
# tags:
# - linux
# image: mono
# script:
# -
hash:
stage: stage1
dependencies: []
tags:
- linux
image: mono
script:
- cd update
- ./update-server.sh
- cd ..
- mkdir -p dist/update
- mv update/*.txt dist/update/
artifacts:
paths:
- dist/
upload_to_minio:
stage: stage2
......
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