Test env variables in github action
This commit is contained in:
8
.github/workflows/go.yml
vendored
8
.github/workflows/go.yml
vendored
@@ -30,7 +30,13 @@ jobs:
|
||||
run: |
|
||||
go build -v .
|
||||
working-directory: ./server
|
||||
|
||||
- name: Modify config params
|
||||
run: |
|
||||
sed -i 's/%{address}/$MYSQL_ADDR/' config.yaml
|
||||
sed -i 's/%{username}/$MYSQL_USERNAME/' config.yaml
|
||||
sed -i 's/%{password}/$MSQL_PASSWORD/' config.yaml
|
||||
cat config.yaml
|
||||
working-directory: ./server
|
||||
- name: Run
|
||||
run: |
|
||||
nohup ./gin-vue-admin &
|
||||
|
Reference in New Issue
Block a user