Skip to content

Commit 6b281bd

Browse files
authored
Update Dockerfile for release/v5.2.x (#3089)
1 parent eb6c376 commit 6b281bd

File tree

5 files changed

+19
-157
lines changed

5 files changed

+19
-157
lines changed

.github/workflows/e2e-fork.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/e2e.yaml

Lines changed: 0 additions & 105 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ jobs:
5252
- name: Build
5353
run: GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=false make build
5454

55+
docker-build:
56+
runs-on: ubuntu-latest
57+
steps:
58+
- uses: actions/checkout@v3
59+
- name: Docker Build
60+
run: docker build . --no-cache --build-arg IBC_GO_VERSION=v5.2.0
61+
5562
split-test-files:
5663
runs-on: ubuntu-latest
5764
steps:

Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
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

@@ -18,6 +23,10 @@ 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)