File tree 4 files changed +12
-62
lines changed
4 files changed +12
-62
lines changed Original file line number Diff line number Diff line change 17
17
matrix :
18
18
flavour :
19
19
- ubuntu
20
- - alpine3.11
21
20
- alpine3.12
22
21
runs-on : [ubuntu-latest]
23
22
env :
46
45
fi
47
46
48
47
case $FLAVOUR in
49
- alpine3.11)
50
- dockerFile="Dockerfile-alpine3.11"
51
- imageTag=${imageTag}-alpine3.11
52
- ;;
53
48
alpine3.12)
54
49
dockerFile="Dockerfile-alpine3.12"
55
50
imageTag=${imageTag}-alpine3.12
Original file line number Diff line number Diff line change @@ -15,16 +15,16 @@ RUN apt-get update && \
15
15
16
16
17
17
# build shell-operator binary
18
- FROM golang:1.12 AS shell-operator
18
+ FROM golang:1.15 AS shell-operator
19
19
ARG appVersion=latest
20
20
21
21
# Cache-friendly download of go dependencies.
22
- ADD go.mod go.sum /src/shell-operator /
23
- WORKDIR /src/shell-operator
22
+ ADD go.mod go.sum /app /
23
+ WORKDIR /app
24
24
RUN go mod download
25
25
26
26
COPY --from=libjq /libjq /libjq
27
- ADD . /src/shell-operator
27
+ ADD . /app
28
28
29
29
RUN CGO_ENABLED=1 \
30
30
CGO_CFLAGS="-I/libjq/include" \
@@ -41,13 +41,14 @@ FROM ubuntu:18.04
41
41
RUN apt-get update && \
42
42
apt-get install -y ca-certificates wget jq && \
43
43
rm -rf /var/lib/apt/lists && \
44
- wget https://storage.googleapis.com/kubernetes-release/release/v1.17 .4/bin/linux/amd64/kubectl -O /bin/kubectl && \
44
+ wget https://storage.googleapis.com/kubernetes-release/release/v1.19 .4/bin/linux/amd64/kubectl -O /bin/kubectl && \
45
45
chmod +x /bin/kubectl && \
46
+ rm -rf /var/lib/apt/lists/* && \
46
47
mkdir /hooks
47
48
ADD frameworks /
48
49
ADD shell_lib.sh /
49
50
COPY --from=tini /usr/local/bin/tini /sbin/tini
50
- COPY --from=shell-operator /src /shell-operator /
51
+ COPY --from=shell-operator /app /shell-operator /
51
52
WORKDIR /
52
53
ENV SHELL_OPERATOR_HOOKS_DIR /hooks
53
54
ENV LOG_TYPE json
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ ARG appVersion=latest
14
14
RUN apk --no-cache add git ca-certificates gcc libc-dev
15
15
16
16
# Cache-friendly download of go dependencies.
17
- ADD go.mod go.sum /src/shell-operator /
18
- WORKDIR /src/shell-operator
17
+ ADD go.mod go.sum /app /
18
+ WORKDIR /app
19
19
RUN go mod download
20
20
21
21
COPY --from=libjq /libjq /libjq
22
- ADD . /src/shell-operator
22
+ ADD . /app
23
23
24
24
RUN CGO_ENABLED=1 \
25
25
CGO_CFLAGS="-I/libjq/include" \
@@ -33,12 +33,12 @@ RUN CGO_ENABLED=1 \
33
33
# build final image
34
34
FROM alpine:3.12
35
35
RUN apk --no-cache add ca-certificates jq bash sed tini && \
36
- wget https://storage.googleapis.com/kubernetes-release/release/v1.19.0 /bin/linux/amd64/kubectl -O /bin/kubectl && \
36
+ wget https://storage.googleapis.com/kubernetes-release/release/v1.19.4 /bin/linux/amd64/kubectl -O /bin/kubectl && \
37
37
chmod +x /bin/kubectl && \
38
38
mkdir /hooks
39
39
ADD frameworks /
40
40
ADD shell_lib.sh /
41
- COPY --from=shell-operator /src /shell-operator /
41
+ COPY --from=shell-operator /app /shell-operator /
42
42
WORKDIR /
43
43
ENV SHELL_OPERATOR_HOOKS_DIR /hooks
44
44
ENV LOG_TYPE json
You can’t perform that action at this time.
0 commit comments