fix: pass COMMIT_SHA build arg to Docker for CI status display
Build & Push Portfolio Image / build-push (push) Successful in 3m27s
Build & Push Portfolio Image / build-push (push) Successful in 3m27s
This commit is contained in:
@@ -15,6 +15,10 @@ RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
# Copy source
|
||||
COPY . .
|
||||
|
||||
# Pass commit SHA at build time
|
||||
ARG COMMIT_SHA=dev
|
||||
ENV COMMIT_SHA=${COMMIT_SHA}
|
||||
|
||||
# Build Next.js app
|
||||
RUN pnpm run build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user