mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 07:08:02 +00:00
chore: update Dockerfile and Drone configuration to use VERSION and BUILD_TIME arguments for better build tracking
This commit is contained in:
@@ -17,7 +17,8 @@ steps:
|
||||
- ${DRONE_TAG}
|
||||
- latest
|
||||
build_args:
|
||||
- BUILD_TAG=${DRONE_TAG}
|
||||
- VERSION=${DRONE_TAG}
|
||||
- BUILD_TIME=${DRONE_BUILD_FINISHED}
|
||||
- name: build-worker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
|
||||
@@ -26,7 +26,8 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o backend
|
||||
|
||||
|
||||
FROM front-base AS runner
|
||||
ARG BUILD_TAG
|
||||
ARG VERSION
|
||||
ARG BUILD_TIME
|
||||
WORKDIR /app
|
||||
RUN apk add --no-cache curl openssl
|
||||
ENV NODE_ENV production
|
||||
@@ -43,6 +44,8 @@ COPY 015.sh /app/015.sh
|
||||
ENV PORT=80 HOST=0.0.0.0
|
||||
ENV SITE_URL="http://localhost"
|
||||
ENV UPLOAD_PATH="/uploads"
|
||||
ENV VERSION=${VERSION}
|
||||
ENV BUILD_TIME=${BUILD_TIME}
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
|
||||
Reference in New Issue
Block a user