Browse Source

fix(ci): upgrade build base image to go 1.18.5 (#1354)

* fix(ci): upgrade build base image to go 1.18.5

Signed-off-by: Jianxiang Ran <rxan_embedded@163.com>
superxan 2 years atrás
parent
commit
c7dc73d775

+ 1 - 1
.github/dockerfile/Dockerfile.centos

@@ -16,7 +16,7 @@ FROM centos:7
 
 RUN yum install -y make wget git which rpm-build gcc
 
-ARG GO_VERSION=1.18
+ARG GO_VERSION=1.18.5
 
 RUN case $(arch) in \
         x86_64) \

+ 12 - 4
.github/dockerfile/Dockerfile.debian

@@ -12,12 +12,20 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-ARG GO_VERSION=1.18
-FROM golang:${GO_VERSION} AS builder
+FROM debian:stretch
+
+ARG GO_VERSION=1.18.5
+
+RUN apt update \
+    && apt install -y zip upx pkg-config libczmq-dev build-essential debhelper jq zip
+
+RUN wget --no-verbose https://golang.org/dl/go$GO_VERSION.linux-$(dpkg --print-architecture).tar.gz \
+    && tar -C /usr/local -xzf go$GO_VERSION.linux-$(dpkg --print-architecture).tar.gz
+
+ENV PATH=$PATH:/usr/local/go/bin
 
 COPY . /go/kuiper
 
 WORKDIR /go/kuiper
 
-RUN apt update \
-    && apt install -y zip upx pkg-config libczmq-dev build-essential debhelper jq zip
+ENV KUIPER_SOURCE=/go/kuiper

+ 1 - 1
.github/workflows/build_base_image.yaml

@@ -21,7 +21,7 @@ jobs:
           - debian
           - centos
         golang:
-          - 1.18
+          - 1.18.5
 
     steps:
       - uses: actions/checkout@v2