Merge branch 'gin' into 'master'
Gin See merge request root/esg_report_backend!2
This commit is contained in:
commit
ae91d8a22f
|
@ -0,0 +1,15 @@
|
||||||
|
stages:
|
||||||
|
- deploy
|
||||||
|
|
||||||
|
job:
|
||||||
|
stage: deploy
|
||||||
|
script:
|
||||||
|
# - docker stop esg-report-backend
|
||||||
|
# - docker rm esg-report-backend
|
||||||
|
- docker build -t esg-report-backend .
|
||||||
|
- docker run -d --restart=always --network=host --name esg-report-backend esg-report-backend
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
tags:
|
||||||
|
- esg-report-backend
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
FROM golang:latest
|
||||||
|
ENV GOPROXY https://goproxy.cn,direct
|
||||||
|
WORKDIR /home/esg_report_backend
|
||||||
|
COPY . .
|
||||||
|
RUN go build -o app .
|
||||||
|
WORKDIR /dist
|
||||||
|
RUN cp /home/esg_report_backend
|
||||||
|
EXPOSE 9090
|
||||||
|
ENTRYPOINT ["/dist/app"]
|
Loading…
Reference in New Issue