Skip to content

Commit 5f4b8f9

Browse files
authored
Update Dockerfile for 4.3.x (#3057)
1 parent cde7dde commit 5f4b8f9

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

.github/workflows/release.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,5 @@ jobs:
5151
context: .
5252
push: true
5353
tags: ${{ steps.meta.outputs.tags }}
54-
labels: ${{ steps.meta.outputs.labels }}
54+
build-args: |
55+
IBC_GO_VERSION="${{ github.ref_name }}"

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
steps:
5757
- uses: actions/checkout@v3
5858
- name: Docker Build
59-
run: docker build . --no-cache
59+
run: docker build . --no-cache --build-arg IBC_GO_VERSION=v4.3.0
6060

6161
split-test-files:
6262
runs-on: ubuntu-latest

Dockerfile

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,32 @@
1-
FROM golang:1.18 as builder
1+
FROM golang:1.19 as builder
2+
3+
ARG IBC_GO_VERSION
24

35
ENV GOPATH=""
46
ENV GOMODULE="on"
57

8+
# ensure the ibc go version is being specified for this image.
9+
RUN test -n "${IBC_GO_VERSION}"
10+
611
COPY go.mod .
712
COPY go.sum .
813

914
RUN go mod download
1015

11-
ADD testing testing
12-
ADD modules modules
13-
ADD LICENSE LICENSE
16+
COPY testing testing
17+
COPY modules modules
18+
COPY LICENSE LICENSE
1419

1520
COPY Makefile .
1621

1722
RUN make build
1823

1924
FROM ubuntu:20.04
2025

26+
ARG IBC_GO_VERSION
27+
28+
LABEL "org.cosmos.ibc-go" "${IBC_GO_VERSION}"
29+
2130
COPY --from=builder /go/build/simd /bin/simd
2231

2332
ENTRYPOINT ["simd"]

0 commit comments

Comments
 (0)