Browse Source

drone: update

Yi 11 months ago
parent
commit
ff764d1307
2 changed files with 11 additions and 11 deletions
  1. 2 2
      .drone-bak.yml
  2. 9 9
      Dockerfile

+ 2 - 2
.drone.yml → .drone-bak.yml

@@ -26,9 +26,9 @@ steps:
         from_secret: aliyun_name
       password:
         from_secret: aliyun_password
-      repo: registry.cn-hangzhou.aliyuncs.com/kpt-event/kpt-tmr
+      repo: registry.cn-hangzhou.aliyuncs.com/kpt-event/kpt-tmr-sheep
       registry: registry.cn-hangzhou.aliyuncs.com
-      tags: [ 1.0.3,latest ]
+      tags: [ 1.0.0,latest ]
 
 trigger:
   branch:

+ 9 - 9
Dockerfile

@@ -1,6 +1,6 @@
 FROM golang:1.17-alpine as build
 
-WORKDIR /app/kpt-tmr
+WORKDIR /app/kpt-tmr-sheep
 
 COPY . .
 
@@ -11,25 +11,25 @@ RUN go env -w GO111MODULE=on && \
     go env -w CGO_ENABLED=0 && \
     go env -w GOARCH=amd64 && \
     go env -w GOOS=linux && \
-    go build -o ./bin/kptTmr -ldflags "-X kpt.kptyun.cn:3000/kpt-event/kpt-tmr/pod.appVersion=tmr" main.go
+    go build -o ./bin/kptTmrSheep -ldflags "-X kpt.kptyun.cn:3000/kpt-event/kpt-tmr-sheep/pod.appVersion=tmr" main.go
 
 
 FROM alpine:latest
-LABEL name="kpt-tmr" \
+LABEL name="kpt-tmr-sheep" \
 description="pt service" \
 owner="yiping.xu"
 
-WORKDIR /app/kpt-tmr
+WORKDIR /app/kpt-tmr-sheep
 
 RUN apk update && apk add tzdata
 RUN ln -sv /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
 && echo "Asia/Shanghai" > /etc/timezone \
 
-COPY --from=0 /app/kpt-tmr/conf/ /app/kpt-tmr/bin/conf/
-COPY --from=0 /app/kpt-tmr/uploads /app/kpt-tmr/bin/uploads
-COPY --from=0  /app/kpt-tmr/bin/kptTmr /app/kpt-tmr/bin/kptTmr
+COPY --from=0 /app/kpt-tmr-sheep/conf/ /app/kpt-tmr-sheep/bin/conf/
+COPY --from=0 /app/kpt-tmr-sheep/uploads /app/kpt-tmr-sheep/bin/uploads
+COPY --from=0  /app/kpt-tmr-sheep/bin/kptTmr /app/kpt-tmr-sheep/bin/kptTmr
 
 EXPOSE 8081
-VOLUME ["/app/kpt-tmr/logger","/app/kpt-tmr/bin/conf/"]
+VOLUME ["/app/kpt-tmr-sheep/logger","/app/kpt-tmr-sheep/bin/conf/"]
 
-CMD ["/app/kpt-tmr/bin/kptTmr"]
+CMD ["/app/kpt-tmr-sheep/bin/kptTmrSheep"]