Commit 5a1303c2 authored by nanahira's avatar nanahira

add update hash calc

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