Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Use go 1.19 for proto build environment #12854

Merged
merged 10 commits into from
Aug 8, 2022
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions .github/workflows/proto-docker.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Build & Push SDK Proto Builder
name: ghcr.io/cosmos/proto-builder
faddat marked this conversation as resolved.
Show resolved Hide resolved
on:
push:
branches:
- main
paths:
- "contrib/devtools/dockerfile"
- "contrib/devtools/Dockerfile"

permissions:
contents: read
Expand All @@ -31,16 +31,28 @@ 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: Build
uses: docker/build-push-action@v2
if: ${{ github.event_name == 'pull_request' }}
with:
file: contrib/devtools/Dockerfile
context: ./contrib/devtools
platforms: linux/amd64,linux/arm64
push: false
tac0turtle marked this conversation as resolved.
Show resolved Hide resolved

- 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
faddat marked this conversation as resolved.
Show resolved Hide resolved
tags: ${{ steps.prep.outputs.tags }}
name: ghcr.io/cosmos/proto-builder
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