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
7951517bcc
commit
64bb588c52
1 changed files with 15 additions and 3 deletions
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
|
|
@ -2,13 +2,13 @@ name: build-deploy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: ["main"]
|
||||||
paths-ignore: # 忽略的文件
|
paths-ignore: # 忽略的文件
|
||||||
- "README.md"
|
- "README.md"
|
||||||
- "LICENSE"
|
- "LICENSE"
|
||||||
- "CHANGELOG.md"
|
- "CHANGELOG.md"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: ["main"]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
|
|
@ -41,3 +41,15 @@ jobs:
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.IMAGE_NAME_FULL }}:latest
|
${{ env.IMAGE_NAME_FULL }}:latest
|
||||||
|
|
||||||
|
- name: ssh pipelines
|
||||||
|
uses: appleboy/ssh-action@v1.0.0
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.REMOTE_HOST }}
|
||||||
|
username: ${{ secrets.REMOTE_USER }}
|
||||||
|
key: ${{ secrets.ACCESS_TOKEN }}
|
||||||
|
script: |
|
||||||
|
cd ${{ secrets.REMOTE_PATH }}
|
||||||
|
docker compose stop && docker compose rm -f
|
||||||
|
docker compose pull
|
||||||
|
docker compose up -d
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue