更新 .gitea/workflows/demo.yaml
发布生产
This commit is contained in:
parent
b035e80a29
commit
1fa41b0bbe
|
|
@ -19,7 +19,7 @@ on:
|
||||||
# - cron: '30 5 * * 2,4'
|
# - cron: '30 5 * * 2,4'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
"构建应用":
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# https://github.com/actions/checkout
|
# https://github.com/actions/checkout
|
||||||
|
|
@ -111,8 +111,8 @@ jobs:
|
||||||
echo 'docker build -t <dockerhub repository name>.'
|
echo 'docker build -t <dockerhub repository name>.'
|
||||||
echo 'docker push <dockerhub repository name>:latest'
|
echo 'docker push <dockerhub repository name>:latest'
|
||||||
docker info
|
docker info
|
||||||
发布应用:
|
deploy:
|
||||||
needs: "构建应用"
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 执行远程 SSH 命令
|
- name: 执行远程 SSH 命令
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue