Compare commits

...

5 Commits
master ... dev

Author SHA1 Message Date
otto a6d599cc59 up 6 months ago
otto cfd012bea0 uop 6 months ago
otto 268ffa59e4 up 6 months ago
otto 406ca58ecb up 6 months ago
otto 2fa9f99e86 up 6 months ago
  1. 6
      Dockerfile
  2. 2
      Jenkinsfile
  3. 2
      message-clear-job-dev.yaml

6
Dockerfile

@ -4,7 +4,7 @@ COPY . /src
WORKDIR /src WORKDIR /src
RUN go mod tidy RUN go mod tidy
RUN go build hot.go RUN go build main.go
FROM 192.168.1.131:8888/library/alpine:3.13 FROM 192.168.1.131:8888/library/alpine:3.13
RUN apk add make RUN apk add make
@ -16,6 +16,6 @@ RUN echo "Asia/Shanghai" > /etc/timezone
WORKDIR /app WORKDIR /app
COPY --from=builder /src/configs /app/configs COPY --from=builder /src/configs /app/configs
COPY --from=builder /src/hot /app/hot COPY --from=builder /src/main /app/main
ENTRYPOINT ["./hot"] ENTRYPOINT ["./main"]

2
Jenkinsfile vendored

@ -114,7 +114,7 @@ pipeline {
stage('apply') { stage('apply') {
steps { steps {
// apply() apply()
echo '执行apply 完成' echo '执行apply 完成'
} }
} }

2
hotspot-clear-job-dev.yaml → message-clear-job-dev.yaml

@ -12,7 +12,7 @@ spec:
spec: spec:
containers: containers:
- name: message-clear - name: message-clear
image: 192.168.1.131:8888/job/dev/message-clear:7d42712db2fa490b8763183fecb1c0e291b80f7a image: 192.168.1.131:8888/job/dev/message-clear:2fa9f99e86f55f384cfd6bced7ad5c9737c963aa
env: env:
- name: JM_ENVIRONMENT - name: JM_ENVIRONMENT
value: dev value: dev
Loading…
Cancel
Save