|
1 |
| -name: gin-vue-admin backend deploy |
2 |
| - |
3 |
| -on: |
4 |
| - push: |
5 |
| - branches: |
6 |
| - - master |
7 |
| - paths: |
8 |
| - - './server/**' |
9 |
| - |
10 |
| -jobs: |
11 |
| - |
12 |
| - deploy: |
13 |
| - name: Backend deploy |
14 |
| - runs-on: [ self-hosted ] |
15 |
| - steps: |
16 |
| - |
17 |
| - - name: Check out the repository |
18 |
| - uses: actions/checkout@master |
19 |
| - |
20 |
| - - name: Show files |
21 |
| - run: | |
22 |
| - pwd |
23 |
| - ls -la |
24 |
| -
|
25 |
| - - name: Get dependencies |
26 |
| - run: | |
27 |
| - go get -v -t -d ./... |
28 |
| - if [ -f Gopkg.toml ]; then |
29 |
| - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh |
30 |
| - dep ensure |
31 |
| - fi |
32 |
| - working-directory: ./server |
33 |
| - |
34 |
| - - name: Build |
35 |
| - run: | |
36 |
| - go build -o run -v |
37 |
| - working-directory: ./server |
38 |
| - |
39 |
| - - name: Modify config params |
40 |
| - run: | |
41 |
| - sed -i 's/%{mysql_address}/'$MYSQL_ADDR'/' config.yaml |
42 |
| - sed -i 's/%{mysql_username}/'$MYSQL_USERNAME'/' config.yaml |
43 |
| - sed -i 's/%{mysql_password}/'$MSQL_PASSWORD'/' config.yaml |
44 |
| - sed -i 's/%{redis_address}/'$REDIS_ADDR'/' config.yaml |
45 |
| - sed -i 's/%{redis_password}/'$REDIS_PASSWORD'/' config.yaml |
46 |
| - working-directory: ./server |
| 1 | +# name: gin-vue-admin backend deploy |
| 2 | + |
| 3 | +# on: |
| 4 | +# push: |
| 5 | +# branches: |
| 6 | +# - master |
| 7 | +# paths: |
| 8 | +# - './server/**' |
| 9 | + |
| 10 | +# jobs: |
| 11 | + |
| 12 | +# deploy: |
| 13 | +# name: Backend deploy |
| 14 | +# runs-on: [ self-hosted ] |
| 15 | +# steps: |
| 16 | + |
| 17 | +# - name: Check out the repository |
| 18 | +# uses: actions/checkout@master |
| 19 | + |
| 20 | +# - name: Show files |
| 21 | +# run: | |
| 22 | +# pwd |
| 23 | +# ls -la |
| 24 | + |
| 25 | +# - name: Get dependencies |
| 26 | +# run: | |
| 27 | +# go get -v -t -d ./... |
| 28 | +# if [ -f Gopkg.toml ]; then |
| 29 | +# curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh |
| 30 | +# dep ensure |
| 31 | +# fi |
| 32 | +# working-directory: ./server |
| 33 | + |
| 34 | +# - name: Build |
| 35 | +# run: | |
| 36 | +# go build -o run -v |
| 37 | +# working-directory: ./server |
| 38 | + |
| 39 | +# - name: Modify config params |
| 40 | +# run: | |
| 41 | +# sed -i 's/%{mysql_address}/'$MYSQL_ADDR'/' config.yaml |
| 42 | +# sed -i 's/%{mysql_username}/'$MYSQL_USERNAME'/' config.yaml |
| 43 | +# sed -i 's/%{mysql_password}/'$MSQL_PASSWORD'/' config.yaml |
| 44 | +# sed -i 's/%{redis_address}/'$REDIS_ADDR'/' config.yaml |
| 45 | +# sed -i 's/%{redis_password}/'$REDIS_PASSWORD'/' config.yaml |
| 46 | +# working-directory: ./server |
47 | 47 |
|
48 |
| - - name: Run Dockerfile |
49 |
| - run: | |
50 |
| - echo 'There is nothing for the time being' |
51 |
| - working-directory: ./server |
| 48 | +# - name: Run Dockerfile |
| 49 | +# run: | |
| 50 | +# echo 'There is nothing for the time being' |
| 51 | +# working-directory: ./server |
52 | 52 |
|
53 | 53 |
|
54 | 54 |
|
0 commit comments