Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
wxnacy committed May 13, 2020
2 parents 98c094b + bc6b3f4 commit c05ce7e
Show file tree
Hide file tree
Showing 7 changed files with 205 additions and 0 deletions.
128 changes: 128 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# Created by .ignore support plugin (hsz.mobi)
### Python template
# Byte-compiled / optimized / DLL files
__pycache__/
*/__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.vscode
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

#sublime config
.DS_Store
*/.DS_Store
.tags
.tags_sorted_by_file

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/
# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# dotenv
# .env

# virtualenv
.venv/
venv/
ENV/


# add by wenxiaoning begin
.idea/
.npmignore
.serverless/
node_modules/
*/.serverless/
*/node_modules/
*/node_modules/*
*/.cache/
*/local_config.py
api/test/winn*
winn*
# add by wenxiaoning end


# Spyder project settings
.spyderproject

# Rope project settings
.ropeproject
metrics.flask.log
crawler/common
*.retry
*.out
*.swp
*/*.swp
*.log.*

*.pem
golang/pkg/
golang/bin/
golang/src/github.com/
golang/src/gopkg.in/
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Create by goss

[goss](https://github.com/wxnacy/goss)(Github Object Storage System) 使用 Github 构建类似 oss 的对象储存工具,本工具可以很方便的管理 github 数据,可以很方便的搭建图床

使用说明请见[文档](https://github.com/wxnacy/goss#%E5%AE%89%E8%A3%85)
7 changes: 7 additions & 0 deletions commit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
# 部署指定tag 的api程序
# __author__ = "wenxiaoning([email protected])"
# __copyright__ = "Copyright of GoChinaTV (2017)."

MSG=$@
git add . && git commit -m "${MSG}"
10 changes: 10 additions & 0 deletions get_branch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
# 部署指定tag 的api程序
# __author__ = "wenxiaoning([email protected])"
# __copyright__ = "Copyright of GoChinaTV (2017)."


# echo '`git branch`'
# git branch | grep '*' | awk '{print $2}'
res=`git branch | grep '*' | awk '{print $2}'`
echo $res
6 changes: 6 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Author: wxnacy([email protected])
# Description:


./push_tag.sh $(date '+%Y.%m.%d.%H%M%S') new version
31 changes: 31 additions & 0 deletions push.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env bash
# 部署指定tag 的api程序
# __author__ = "wenxiaoning([email protected])"
# __copyright__ = "Copyright of GoChinaTV (2017)."

MSG=$@
branch_name=`./get_branch.sh`

push(){
echo '******************************'
echo '********开始push api:'
echo '******************************'
./commit.sh ${MSG}
git pull origin $branch_name
git add . && git commit -m "${MSG}"
git push origin $branch_name
echo '******************************'
echo '********部署成功'
echo '******************************'
}

main(){
if [ ! "${MSG}" ]
then
echo 'UAGE: ./winn_push.sh <string:commit msg>'
else
push
fi
}

main
18 changes: 18 additions & 0 deletions push_tag.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

TAG_NAME=$1
PUSH_MSG=${@/$1/}


main(){
./push.sh $PUSH_MSG
git tag ${TAG_NAME}
git push origin ${TAG_NAME}
}

if [ ! ${TAG_NAME} ]
then
echo 'UAGE: ./push_tag.sh <regex:tag_name>'
else
main
fi

0 comments on commit c05ce7e

Please sign in to comment.