瀏覽代碼

no message

DESKTOP-3E973C2\Admin 4 年之前
當前提交
62f359acaa
共有 4 個文件被更改,包括 28 次插入0 次删除
  1. 12 0
      Dockerfile
  2. 8 0
      agollo.json
  3. 8 0
      push.sh
  4. 二進制
      versioncheck-apple

+ 12 - 0
Dockerfile

@@ -0,0 +1,12 @@
+FROM registry-vpc.cn-beijing.aliyuncs.com/xinyue/alpine-cst:1
+RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
+RUN echo 'Asia/Shanghai' > /etc/timezone
+
+COPY versioncheck-apple /go/bin/
+COPY agollo.json /go/bin/
+RUN chmod +x /go/bin/versioncheck-apple
+WORKDIR /go/bin/
+
+CMD ["/go/bin/versioncheck-apple"]
+
+EXPOSE 8079

+ 8 - 0
agollo.json

@@ -0,0 +1,8 @@
+{
+  "appId": "versioncheck",
+  "cluster" : "review",
+  "namespaceNames" : ["host.yaml", "app.yaml", "opt_config.yaml", "super.yaml", "upgrade.yaml"],
+  "ip" : "10.68.0.122:8080",
+  "oneNamespaceMode" : true,
+  "tagname" : "yaml"
+}

+ 8 - 0
push.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+
+release=$1
+
+[ ! -n "$release" ] && exit 1
+
+docker build -t registry-vpc.cn-beijing.aliyuncs.com/xinyue/versioncheck-apple:${release} .
+docker push registry-vpc.cn-beijing.aliyuncs.com/xinyue/versioncheck-apple:${release}

二進制
versioncheck-apple