Skip to content

Commit 22d4246

Browse files
committed
fix: pin terra go v1.22
1 parent 343a0aa commit 22d4246

3 files changed

Lines changed: 22 additions & 2 deletions

File tree

.github/workflows/terra-classic.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ jobs:
4949
5050
- name: Build and push terra-classic Docker image
5151
run: |
52-
./heighliner build -c terra-classic --git-ref ${{ env.VERSION }} --alpine-version 3.18
52+
./heighliner build -c terra-classic-go-1-22 --git-ref ${{ env.VERSION }} --alpine-version 3.18 --go-version 1.22
5353
5454
- name: Tag and push Docker image
5555
run: |
56-
docker tag terra-classic:${{ env.VERSION }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:terra-classic-${{ env.VERSION }}
56+
docker tag terra-classic-go-1-22:${{ env.VERSION }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:terra-classic-${{ env.VERSION }}
5757
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:terra-classic-${{ env.VERSION }}

chains/terra-classic-go-1-22.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Terra Classic
2+
- name: terra-classic
3+
github-organization: classic-terra
4+
github-repo: core
5+
dockerfile: cosmos
6+
build-target: make install
7+
binaries:
8+
- /go/bin/terrad
9+
build-env:
10+
- BUILD_TAGS=muslc

chains/terra-classic.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
github-organization: classic-terra
44
github-repo: core
55
dockerfile: cosmos
6+
pre-build: |
7+
GO_VERSION=1.22.10
8+
apk update
9+
apk add --no-cache --virtual .build-deps bash gcc musl-dev openssl go
10+
wget -O go.tgz https://golang.org/dl/go${GO_VERSION}.src.tar.gz
11+
tar -C /usr/local -xzf go.tgz
12+
rm go.tgz
13+
cd /usr/local/go/src
14+
./make.bash
15+
apk del .build-deps
616
build-target: make install
717
binaries:
818
- /go/bin/terrad

0 commit comments

Comments
 (0)