File tree 3 files changed +16
-6
lines changed
3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 51
51
context : .
52
52
push : true
53
53
tags : ${{ steps.meta.outputs.tags }}
54
- labels : ${{ steps.meta.outputs.labels }}
54
+ build-args : |
55
+ IBC_GO_VERSION="${{ github.ref_name }}"
Original file line number Diff line number Diff line change 56
56
steps :
57
57
- uses : actions/checkout@v3
58
58
- name : Docker Build
59
- run : docker build . --no-cache
59
+ run : docker build . --no-cache --build-arg IBC_GO_VERSION=v4.3.0
60
60
61
61
split-test-files :
62
62
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1
- FROM golang:1.18 as builder
1
+ FROM golang:1.19 as builder
2
+
3
+ ARG IBC_GO_VERSION
2
4
3
5
ENV GOPATH=""
4
6
ENV GOMODULE="on"
5
7
8
+ # ensure the ibc go version is being specified for this image.
9
+ RUN test -n "${IBC_GO_VERSION}"
10
+
6
11
COPY go.mod .
7
12
COPY go.sum .
8
13
9
14
RUN go mod download
10
15
11
- ADD testing testing
12
- ADD modules modules
13
- ADD LICENSE LICENSE
16
+ COPY testing testing
17
+ COPY modules modules
18
+ COPY LICENSE LICENSE
14
19
15
20
COPY Makefile .
16
21
17
22
RUN make build
18
23
19
24
FROM ubuntu:20.04
20
25
26
+ ARG IBC_GO_VERSION
27
+
28
+ LABEL "org.cosmos.ibc-go" "${IBC_GO_VERSION}"
29
+
21
30
COPY --from=builder /go/build/simd /bin/simd
22
31
23
32
ENTRYPOINT ["simd" ]
You can’t perform that action at this time.
0 commit comments