Skip to content
This repository was archived by the owner on Jan 14, 2026. It is now read-only.

chore(deps): update dependency nuxt to v4.2.2 #152

chore(deps): update dependency nuxt to v4.2.2

chore(deps): update dependency nuxt to v4.2.2 #152

Workflow file for this run

name: Build and Push Container
"on":
push:
branches: [main, master]
tags: ["v*"]
pull_request:
branches: [main, master]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
test-nodejs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./app
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: "./app/package-lock.json"
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test:run
test-python:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./extraction
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Install dependencies
run: uv sync
- name: Run tests
run: uv run pytest
build:
runs-on: ubuntu-latest
needs: [test-nodejs, test-python]
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Extract app version
id: app_version
run: |
VERSION=$(node -p "require('./app/package.json').version")
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "App version: ${VERSION}"
- name: Log in to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get git SHA
id: git_sha
run: |
SHORT_SHA=$(git rev-parse --short HEAD)
echo "short_sha=${SHORT_SHA}" >> $GITHUB_OUTPUT
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# yamllint disable rule:line-length
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha
type=raw,value=${{ steps.app_version.outputs.version }}
type=raw,value=v${{ steps.app_version.outputs.version }}-${{ steps.git_sha.outputs.short_sha }},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
type=raw,value=latest,enable={{is_default_branch}}
# yamllint enable rule:line-length
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./app
file: ./app/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max