mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(nx/ci): fix "Build Docker image" step
This commit is contained in:
parent
054c0246d5
commit
7e2d63847e
9
.github/workflows/dev.yml
vendored
9
.github/workflows/dev.yml
vendored
@ -109,6 +109,7 @@ jobs:
|
|||||||
- test_dev
|
- test_dev
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- uses: pnpm/action-setup@v4
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
- name: Update build info
|
- name: Update build info
|
||||||
@ -116,7 +117,7 @@ jobs:
|
|||||||
- uses: docker/setup-buildx-action@v3
|
- uses: docker/setup-buildx-action@v3
|
||||||
- uses: docker/build-push-action@v6
|
- uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: apps/server
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
test_docker:
|
test_docker:
|
||||||
@ -133,11 +134,12 @@ jobs:
|
|||||||
- name: Checkout the repository
|
- name: Checkout the repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: pnpm/action-setup@v4
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Update build info
|
- name: Update build info
|
||||||
run: npm run chore:update-build-info
|
run: pnpm run chore:update-build-info
|
||||||
|
|
||||||
- name: Set IMAGE_NAME to lowercase
|
- name: Set IMAGE_NAME to lowercase
|
||||||
run: echo "IMAGE_NAME=${IMAGE_NAME,,}" >> $GITHUB_ENV
|
run: echo "IMAGE_NAME=${IMAGE_NAME,,}" >> $GITHUB_ENV
|
||||||
@ -173,5 +175,4 @@ jobs:
|
|||||||
# Print the entire log of the container thus far, regardless if the healthcheck failed or succeeded
|
# Print the entire log of the container thus far, regardless if the healthcheck failed or succeeded
|
||||||
- name: Print entire log
|
- name: Print entire log
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: journalctl -u docker CONTAINER_NAME=trilium_local --no-pager
|
||||||
journalctl -u docker CONTAINER_NAME=trilium_local --no-pager
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user