update build workflow.

This commit is contained in:
Miroslav Šedivý
2025-02-10 16:04:53 +01:00
parent e5c37c7f44
commit 11ac1d4a89
+5 -5
View File
@@ -23,9 +23,9 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- -
name: Setup Node name: Setup Node
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '20.x'
cache: 'npm' cache: 'npm'
cache-dependency-path: ./client/package-lock.json cache-dependency-path: ./client/package-lock.json
- -
@@ -36,7 +36,7 @@ jobs:
run: cd ./client && npm run build run: cd ./client && npm run build
- -
name: Upload artifact name: Upload artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: client name: client
path: ./client/dist path: ./client/dist
@@ -54,7 +54,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- -
name: Download client artifact name: Download client artifact
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: client name: client
path: ./client/dist path: ./client/dist
@@ -94,7 +94,7 @@ jobs:
password: ${{ secrets.DOCKER_TOKEN }} password: ${{ secrets.DOCKER_TOKEN }}
- -
name: Build and push name: Build and push
uses: docker/build-push-action@v5 uses: docker/build-push-action@v6
with: with:
# Turns out the build-push-action runs in a "GitHub" context by default. # Turns out the build-push-action runs in a "GitHub" context by default.
# At the very least, it means pulling down your repository as part of pre-Dockerfile command. # At the very least, it means pulling down your repository as part of pre-Dockerfile command.