提交 651940d4 编写于 作者: G Granty1

Remove deploy script & reset config file

上级 de2f183b
name: gin-vue-admin backend deploy # name: gin-vue-admin backend deploy
on: # on:
push: # push:
branches: # branches:
- master # - master
paths: # paths:
- './server/**' # - './server/**'
jobs: # jobs:
deploy: # deploy:
name: Backend deploy # name: Backend deploy
runs-on: [ self-hosted ] # runs-on: [ self-hosted ]
steps: # steps:
- name: Check out the repository # - name: Check out the repository
uses: actions/checkout@master # uses: actions/checkout@master
- name: Show files # - name: Show files
run: | # run: |
pwd # pwd
ls -la # ls -la
- name: Get dependencies # - name: Get dependencies
run: | # run: |
go get -v -t -d ./... # go get -v -t -d ./...
if [ -f Gopkg.toml ]; then # if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh # curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure # dep ensure
fi # fi
working-directory: ./server # working-directory: ./server
- name: Build # - name: Build
run: | # run: |
go build -o run -v # go build -o run -v
working-directory: ./server # working-directory: ./server
- name: Modify config params # - name: Modify config params
run: | # run: |
sed -i 's/%{mysql_address}/'$MYSQL_ADDR'/' config.yaml # sed -i 's/%{mysql_address}/'$MYSQL_ADDR'/' config.yaml
sed -i 's/%{mysql_username}/'$MYSQL_USERNAME'/' config.yaml # sed -i 's/%{mysql_username}/'$MYSQL_USERNAME'/' config.yaml
sed -i 's/%{mysql_password}/'$MSQL_PASSWORD'/' config.yaml # sed -i 's/%{mysql_password}/'$MSQL_PASSWORD'/' config.yaml
sed -i 's/%{redis_address}/'$REDIS_ADDR'/' config.yaml # sed -i 's/%{redis_address}/'$REDIS_ADDR'/' config.yaml
sed -i 's/%{redis_password}/'$REDIS_PASSWORD'/' config.yaml # sed -i 's/%{redis_password}/'$REDIS_PASSWORD'/' config.yaml
working-directory: ./server # working-directory: ./server
- name: Run Dockerfile # - name: Run Dockerfile
run: | # run: |
echo 'There is nothing for the time being' # echo 'There is nothing for the time being'
working-directory: ./server # working-directory: ./server
...@@ -10,9 +10,9 @@ jwt: ...@@ -10,9 +10,9 @@ jwt:
# mysql connect configuration # mysql connect configuration
mysql: mysql:
username: %{mysql_username} username: root
password: %{mysql_password} password: 'Aa@6447985'
path: %{mysql_address} path: '127.0.0.1:3306'
db-name: 'qmPlus' db-name: 'qmPlus'
config: 'charset=utf8&parseTime=True&loc=Local' config: 'charset=utf8&parseTime=True&loc=Local'
max-idle-conns: 10 max-idle-conns: 10
...@@ -33,8 +33,8 @@ qiniu: ...@@ -33,8 +33,8 @@ qiniu:
img-path: 'http://qmplusimg.henrongyi.top' img-path: 'http://qmplusimg.henrongyi.top'
# redis configuration # redis configuration
redis: redis:
addr: %{redis_address} addr: '127.0.0.1:6379'
passwprd: %{redis_password} password: ''
db: 0 db: 0
# system configuration # system configuration
...@@ -55,4 +55,4 @@ log: ...@@ -55,4 +55,4 @@ log:
prefix: '[GIN-VUE-ADMIN]' prefix: '[GIN-VUE-ADMIN]'
log-file: true log-file: true
stdout: 'DEBUG' stdout: 'DEBUG'
file: 'DEBUG' file: 'DEBUG'
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册