mirror of
https://github.com/m1ngsama/FUJI.git
synced 2025-12-24 10:51:27 +00:00
Update main.yml
This commit is contained in:
parent
2c78456d9e
commit
1fdccb7577
1 changed files with 20 additions and 2 deletions
22
.github/workflows/main.yml
vendored
22
.github/workflows/main.yml
vendored
|
|
@ -19,6 +19,15 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Use Latest Corepack
|
||||
run: |
|
||||
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
|
||||
npm install -g corepack@latest
|
||||
echo "After : corepack version => $(corepack --version)"
|
||||
corepack enable
|
||||
corepack prepare pnpm@latest --activate
|
||||
echo "pnpm version => $(pnpm --version || echo 'pnpm not installed')"
|
||||
|
||||
- uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
|
|
@ -34,6 +43,15 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Use Latest Corepack
|
||||
run: |
|
||||
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
|
||||
npm install -g corepack@latest
|
||||
echo "After : corepack version => $(corepack --version)"
|
||||
corepack enable
|
||||
corepack prepare pnpm@latest --activate
|
||||
echo "pnpm version => $(pnpm --version || echo 'pnpm not installed')"
|
||||
|
||||
- name: Login
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
|
|
@ -62,5 +80,5 @@ jobs:
|
|||
key: ${{ secrets.ACCESS_TOKEN }}
|
||||
envs: BRANCH_NAME
|
||||
script: |
|
||||
cd ${{ github.ref == 'refs/heads/main' && secrets.REMOTE_PATH || secrets.REMOTE_PATH_DEVELOPMENT }}
|
||||
docker compose up --force-recreate -d --pull=always
|
||||
cd ${{secrets.REMOTE_PATH}}
|
||||
docker compose up --force-recreate -d --pull=always
|
||||
|
|
|
|||
Loading…
Reference in a new issue