Commit 54a96df5 authored by nanahira's avatar nanahira

add ci

parent b88d40e6
Pipeline #98 canceled with stage
in 18 seconds
stages:
- test
- deploy
variables:
GIT_DEPTH: "1"
redtext:
stage: test
dependencies: []
tags:
- linux
image: git-registry.mycard.moe/nanahira/srvpro
variables:
DATABASE_FILE: expansions/222DIY.cdb
script:
- apt update && apt -y install sqlite3
- mv /ygopro-server/ygopro .
- cd ygopro
- mkdir dist
- echo "select id from datas;" | sqlite3 $DATABASE_FILE | xargs -I {} ./ygopro {} 2>&1 | tee ../dist/redtext.txt
- cd ..
- cat dist/redtext.txt
artifacts:
paths:
- dist/
upload_to_minio:
stage: deploy
dependencies:
- redtext
tags:
- linux
image: python
script:
- pip install -U -i https://mirrors.aliyun.com/pypi/simple/ awscli
- aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete dist/ s3://mycard/ygopro-222DIY
only:
- tags
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