Skip to content

Commit

Permalink
fix: Protobuf docker (#11472)
Browse files Browse the repository at this point in the history
* fix docker

* revert comment removal

* revert and push
  • Loading branch information
tac0turtle authored Mar 26, 2022
1 parent b2d50a1 commit cc0b9df
Show file tree
Hide file tree
Showing 7 changed files with 1,597 additions and 320 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/proto-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
# set VERSION to new version when making changes, when merged to master the image will automatically be pushed
- uses: actions/checkout@v3
- name: Prepare
id: prep
run: |
DOCKER_IMAGE=tendermintdev/sdk-proto-gen
VERSION=noop
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
elif [[ $GITHUB_REF == refs/heads/* ]]; then
VERSION=$(echo ${GITHUB_REF#refs/heads/} | sed -r 's#/+#-#g')
if [ "${{ github.event.repository.default_branch }}" = "$VERSION" ]; then
VERSION=latest
fi
fi
VERSION=v0.6
TAGS="${DOCKER_IMAGE}:${VERSION}"
echo ::set-output name=tags::${TAGS}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ devdoc-update:
### Protobuf ###
###############################################################################

protoVer=v0.5
protoVer=v0.6
protoImageName=tendermintdev/sdk-proto-gen:$(protoVer)
containerProtoGen=$(PROJECT_NAME)-proto-gen-$(protoVer)
containerProtoGenAny=$(PROJECT_NAME)-proto-gen-any-$(protoVer)
Expand Down
Loading

0 comments on commit cc0b9df

Please sign in to comment.