Skip to content

Commit

Permalink
chore: add version in env of container when building CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kazami139 committed Mar 17, 2023
1 parent d826e65 commit dd5154b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions builder/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ COPY go.mod go.sum /work/
ENV GO111MODULE on
#ENV GOPROXY=https://goproxy.cn,direct

ENV SENTRY_RELEASE $IMAGE_TAG
ENV VERSION $IMAGE_TAG

RUN go mod download

COPY ./ /work
Expand All @@ -23,6 +26,9 @@ RUN apk update --no-cache && apk add --no-cache ca-certificates tzdata

ENV TZ Asia/Shanghai

ENV SENTRY_RELEASE $IMAGE_TAG
ENV VERSION $IMAGE_TAG

COPY --from=builder /work/api_server ./
EXPOSE 8080

Expand Down
6 changes: 6 additions & 0 deletions builder/spider/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ COPY go.mod go.sum /work/
ENV GO111MODULE on
#ENV GOPROXY=https://goproxy.cn,direct

ENV SENTRY_RELEASE $IMAGE_TAG
ENV VERSION $IMAGE_TAG

RUN go mod download

COPY ./ /work
Expand All @@ -23,6 +26,9 @@ RUN apk update --no-cache && apk add --no-cache ca-certificates tzdata

ENV TZ Asia/Shanghai

ENV SENTRY_RELEASE $IMAGE_TAG
ENV VERSION $IMAGE_TAG

COPY --from=builder /work/spider ./
EXPOSE 9266

Expand Down

0 comments on commit dd5154b

Please sign in to comment.