mirror of
https://github.com/m1ngsama/FUJI.git
synced 2025-12-25 02:56:38 +00:00
update action
This commit is contained in:
parent
78960ceb57
commit
2e17ae669f
1 changed files with 5 additions and 4 deletions
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
|
|
@ -2,7 +2,7 @@ name: build-deploy
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
branches: ["main", "feature-*"]
|
||||
paths-ignore: # 忽略的文件
|
||||
- "README.md"
|
||||
- "LICENSE"
|
||||
|
|
@ -40,15 +40,16 @@ jobs:
|
|||
push: true
|
||||
platforms: linux/amd64
|
||||
tags: |
|
||||
${{ env.IMAGE_NAME_FULL }}:latest
|
||||
${{ env.IMAGE_NAME_FULL }}:${{ github.ref_name }}
|
||||
|
||||
- name: ssh pipelines
|
||||
uses: appleboy/ssh-action@v1.0.0
|
||||
env:
|
||||
BRANCH_NAME: ${{ github.ref_name }}
|
||||
with:
|
||||
host: ${{ secrets.REMOTE_HOST }}
|
||||
username: ${{ secrets.REMOTE_USER }}
|
||||
key: ${{ secrets.ACCESS_TOKEN }}
|
||||
script: |
|
||||
printenv
|
||||
cd ${{ secrets.REMOTE_PATH }}
|
||||
cd ${{ github.ref == 'refs/heads/main' && secrets.REMOTE_PATH || secrets.REMOTE_PATH_DEVELOPMENT }}
|
||||
docker compose up --force-recreate -d
|
||||
|
|
|
|||
Loading…
Reference in a new issue