Skip to content

Commit

Permalink
ci: Use go 1.19 for proto build environment (#12854)
Browse files Browse the repository at this point in the history
* Update Dockerfile

* Update proto-docker.yml

* Update Dockerfile

* Update proto-docker.yml

* Update proto-docker.yml

* Update CHANGELOG.md

* Update .github/workflows/proto-docker.yml

Co-authored-by: Marko <marko@baricevic.me>

* Update proto-docker.yml

Co-authored-by: Marko <marko@baricevic.me>
Co-authored-by: Marko <marbar3778@yahoo.com>
  • Loading branch information
3 people authored Aug 8, 2022
1 parent 048c709 commit 1cab2bc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/proto-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ on:
branches:
- main
paths:
- "contrib/devtools/dockerfile"
- "contrib/devtools/Dockerfile"
pull_request:
paths:
- "contrib/devtools/Dockerfile"

permissions:
contents: read
Expand All @@ -31,16 +34,20 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
if: ${{ github.event_name != 'pull_request' }}
with:
username: ${{ secrets.DOCKERHUBTM_USERNAME }}
password: ${{ secrets.DOCKERHUBTM_TOKEN }}
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}


- name: Publish to Docker Hub
- name: Publish to GHCR
uses: docker/build-push-action@v3
with:
context: ./contrib/devtools
platforms: linux/amd64,linux/arm64
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.prep.outputs.tags }}
name: ghcr.io/cosmos/proto-builder
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Ref: https://keepachangelog.com/en/1.0.0/

### Improvements

* (ci) [#12854](https://github.com/cosmos/cosmos-sdk/pull/12854) Use ghcr.io to host the proto builder image. Update proto builder image to go 1.19
* (x/bank) [#12706](https://github.com/cosmos/cosmos-sdk/pull/12706) Added the `chain-id` flag to the `AddTxFlagsToCmd` API. There is no longer a need to explicitly register this flag on commands whens `AddTxFlagsToCmd` is already called.
* [#12791](https://github.com/cosmos/cosmos-sdk/pull/12791) Bump the math library used in the sdk and replace old usages of sdk.*
* (x/params) [#12615](https://github.com/cosmos/cosmos-sdk/pull/12615) Add `GetParamSetIfExists` function to params `Subspace` to prevent panics on breaking changes.
Expand Down
3 changes: 2 additions & 1 deletion contrib/devtools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

FROM bufbuild/buf:1.1.0 as BUILDER

FROM golang:1.18-alpine
FROM golang:1.19-alpine


RUN apk add --no-cache \
nodejs \
Expand Down

0 comments on commit 1cab2bc

Please sign in to comment.