更新 .gitea/workflows/demo.yaml
自动流水线示例 / build (push) Successful in 2m10s
Details
自动流水线示例 / upload (ubuntu-latest) (push) Successful in 20s
Details
自动流水线示例 / deploy (push) Successful in 18s
Details
自动流水线示例 / download (push) Successful in 1m0s
Details
自动流水线示例 / 检查 (push) Successful in 10s
Details
自动流水线示例 / 制品上传 (ubuntu-latest, a) (push) Has been skipped
Details
自动流水线示例 / 制品上传 (ubuntu-latest, b) (push) Has been skipped
Details
自动流水线示例 / 制品上传 (ubuntu-latest, c) (push) Has been skipped
Details
自动流水线示例 / build (push) Successful in 2m10s
Details
自动流水线示例 / upload (ubuntu-latest) (push) Successful in 20s
Details
自动流水线示例 / deploy (push) Successful in 18s
Details
自动流水线示例 / download (push) Successful in 1m0s
Details
自动流水线示例 / 检查 (push) Successful in 10s
Details
自动流水线示例 / 制品上传 (ubuntu-latest, a) (push) Has been skipped
Details
自动流水线示例 / 制品上传 (ubuntu-latest, b) (push) Has been skipped
Details
自动流水线示例 / 制品上传 (ubuntu-latest, c) (push) Has been skipped
Details
发布生产
This commit is contained in:
parent
d19808ea80
commit
77a709e106
|
|
@ -116,6 +116,16 @@ 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
|
||||||
|
- name: 通过 SSH 复制文件
|
||||||
|
uses: appleboy/scp-action@v1
|
||||||
|
with:
|
||||||
|
host: ${{ vars.DEPLOY_HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
password: ${{ secrets.PASSWORD }}
|
||||||
|
port: ${{ vars.PORT }}
|
||||||
|
#source: "tests/a.txt,tests/b.txt"
|
||||||
|
source: "pom.xml"
|
||||||
|
target: /tmp/
|
||||||
deploy:
|
deploy:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -268,7 +278,7 @@ jobs:
|
||||||
echo "获取gitea: ${{ gitea.repository }}"
|
echo "获取gitea: ${{ gitea.repository }}"
|
||||||
- name: release
|
- name: release
|
||||||
# uses: softprops/action-gh-release@v2这是github的.gitea官方的actions才支持.gitea官方的actions:https://gitea.com/actions
|
# uses: softprops/action-gh-release@v2这是github的.gitea官方的actions才支持.gitea官方的actions:https://gitea.com/actions
|
||||||
uses: https://gitea.com/actions/gitea-release-action@v1 # akkuman/gitea-release-action@v1
|
uses: https://gitea.com/actions/gitea-release-action@v1.3.4 # akkuman/gitea-release-action@v1
|
||||||
env:
|
env:
|
||||||
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # github版本专用
|
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # github版本专用
|
||||||
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18[gitea版本]
|
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18[gitea版本]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue