chore: update docker warning and not push on PR

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham 2024-10-06 22:25:35 -04:00
parent a6fafda7f1
commit a6f7f9571b
No known key found for this signature in database
GPG Key ID: 18974753009D2BFA
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ jobs:
id: build-and-push
uses: docker/build-push-action@v6
with:
push: true
push: ${{ github.event_name != 'pull_request' }}
build-args: |
GIT_SHA=${{ env.GITHUB_SHA }}
DOCKER_LABEL=sha-${{ env.GITHUB_SHA_SHORT }}

View File

@ -1,4 +1,4 @@
FROM node:20-slim as builder
FROM node:20-slim AS builder
WORKDIR /usr/src/app
COPY package.json .
COPY package-lock.json* .