Docker: with short sha

This commit is contained in:
Wayne
2025-08-03 13:26:40 +03:00
parent a18e34a486
commit d47f0c5b08
2 changed files with 6 additions and 2 deletions

View File

@@ -24,6 +24,10 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Extract short SHA
id: sha
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@v6
with:
@@ -31,4 +35,4 @@ jobs:
file: ./docker/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: logiclabshq/open-archiver:latest
tags: logiclabshq/open-archiver:${{ steps.sha.outputs.sha }}

View File

@@ -20,7 +20,7 @@ RUN pnpm install --shamefully-hoist --frozen-lockfile --prod=false
# Copy the rest of the source code
COPY . .
# Build packages in order.
# Build all packages.
RUN pnpm build
# 2. Production Stage: Install only production dependencies and copy built artifacts