chore: build-image.yml - update build-push-action to v6 #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [main] | |
jobs: | |
backend-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 for x64 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: temurin | |
architecture: x64 | |
cache: maven | |
- name: Install Maven | |
run: sudo apt-get update && sudo apt-get install -y maven | |
- name: Build with Maven | |
run: mvn --batch-mode --update-snapshots compile | |
frontend-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
architecture: x64 | |
cache: pnpm | |
cache-dependency-path: ./frontend/pnpm-lock.yaml | |
- name: Install dependencies | |
run: pnpm install | |
working-directory: ./frontend | |
- name: Build frontend | |
run: pnpm build | |
working-directory: ./frontend |