Skip to content

Commit

Permalink
Fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
vanpelt committed Jun 21, 2024
1 parent cfb1f9e commit c5ea432
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Create and publish a Docker image
on:
push:
branches:
- "**"
- "feature/*"
workflow_dispatch:

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -32,6 +33,7 @@ jobs:
cache: "pnpm"
- name: Get pnpm store directory
shell: bash
working-directory: ./frontend
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
Expand All @@ -42,10 +44,12 @@ jobs:
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install -C frontend
working-directory: ./frontend
run: pnpm install
# We use npm here because pnpm wasn't executing post hooks
- name: Build frontend
run: cd frontend && npm run build
working-directory: ./frontend
run: npm run build
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
Expand Down

0 comments on commit c5ea432

Please sign in to comment.