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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["main"]
|
branches: ["main", "feature-*"]
|
||||||
paths-ignore: # 忽略的文件
|
paths-ignore: # 忽略的文件
|
||||||
- "README.md"
|
- "README.md"
|
||||||
- "LICENSE"
|
- "LICENSE"
|
||||||
|
|
@ -40,15 +40,16 @@ jobs:
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.IMAGE_NAME_FULL }}:latest
|
${{ env.IMAGE_NAME_FULL }}:${{ github.ref_name }}
|
||||||
|
|
||||||
- name: ssh pipelines
|
- name: ssh pipelines
|
||||||
uses: appleboy/ssh-action@v1.0.0
|
uses: appleboy/ssh-action@v1.0.0
|
||||||
|
env:
|
||||||
|
BRANCH_NAME: ${{ github.ref_name }}
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.REMOTE_HOST }}
|
host: ${{ secrets.REMOTE_HOST }}
|
||||||
username: ${{ secrets.REMOTE_USER }}
|
username: ${{ secrets.REMOTE_USER }}
|
||||||
key: ${{ secrets.ACCESS_TOKEN }}
|
key: ${{ secrets.ACCESS_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
printenv
|
cd ${{ github.ref == 'refs/heads/main' && secrets.REMOTE_PATH || secrets.REMOTE_PATH_DEVELOPMENT }}
|
||||||
cd ${{ secrets.REMOTE_PATH }}
|
|
||||||
docker compose up --force-recreate -d
|
docker compose up --force-recreate -d
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue