mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-05 04:55:18 +00:00
Bumps [docker/login-action](https://github.com/docker/login-action) from 1.13.0 to 1.14.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/docker/login-action/releases">docker/login-action's releases</a>.</em></p> <blockquote> <h2>v1.14.1</h2> <ul> <li>Revert to Node 12 as default runtime to fix issue for GHE users (<a href="https://github-redirect.dependabot.com/docker/login-action/issues/160">#160</a>)</li> </ul> <h2>v1.14.0</h2> <ul> <li>Update to node 16 (<a href="https://github-redirect.dependabot.com/docker/login-action/issues/158">#158</a>)</li> <li>Bump <code>@aws-sdk/client-ecr</code> from 3.45.0 to 3.53.0 (<a href="https://github-redirect.dependabot.com/docker/login-action/issues/157">#157</a>)</li> <li>Bump <code>@aws-sdk/client-ecr-public</code> from 3.45.0 to 3.53.0 (<a href="https://github-redirect.dependabot.com/docker/login-action/issues/156">#156</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="dd4fa0671b"><code>dd4fa06</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/docker/login-action/issues/160">#160</a> from crazy-max/node12</li> <li><a href="4e3538592e"><code>4e35385</code></a> Revert to Node 12 as default runtime</li> <li><a href="bb984efc56"><code>bb984ef</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/docker/login-action/issues/156">#156</a> from docker/dependabot/npm_and_yarn/aws-sdk/client-ec...</li> <li><a href="722888132b"><code>7228881</code></a> Update generated content</li> <li><a href="17780b56b7"><code>17780b5</code></a> Bump <code>@aws-sdk/client-ecr-public</code> from 3.45.0 to 3.53.0</li> <li><a href="39857b3b45"><code>39857b3</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/docker/login-action/issues/157">#157</a> from docker/dependabot/npm_and_yarn/aws-sdk/client-ec...</li> <li><a href="5fcc728422"><code>5fcc728</code></a> Update generated content</li> <li><a href="9fb8721eb9"><code>9fb8721</code></a> Bump <code>@aws-sdk/client-ecr</code> from 3.45.0 to 3.53.0</li> <li><a href="4e3c9375bb"><code>4e3c937</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/docker/login-action/issues/158">#158</a> from crazy-max/node-16</li> <li><a href="4b59a429db"><code>4b59a42</code></a> update to node 16</li> <li>See full diff in <a href="https://github.com/docker/login-action/compare/v1.13.0...v1.14.1">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
65 lines
1.9 KiB
YAML
65 lines
1.9 KiB
YAML
# This workflow (re)builds and pushes a Docker image containing the
|
|
# protobuf build tools used by the other workflows.
|
|
#
|
|
# When making changes that require updates to the builder image, you
|
|
# should merge the updates first and wait for this workflow to complete,
|
|
# so that the changes will be available for the dependent workflows.
|
|
#
|
|
|
|
name: Build & Push Proto Builder Image
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "proto/*"
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- "proto/*"
|
|
schedule:
|
|
# run this job once a month to recieve any go or buf updates
|
|
- cron: "0 9 1 * *"
|
|
|
|
env:
|
|
REGISTRY: ghcr.io
|
|
IMAGE_NAME: tendermint/docker-build-proto
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Check out and assign tags
|
|
id: prep
|
|
run: |
|
|
DOCKER_IMAGE="${REGISTRY}/${IMAGE_NAME}"
|
|
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
|
|
TAGS="${DOCKER_IMAGE}:${VERSION}"
|
|
echo ::set-output name=tags::"${TAGS}"
|
|
|
|
- name: Set up docker buildx
|
|
uses: docker/setup-buildx-action@v1.6.0
|
|
|
|
- name: Log in to the container registry
|
|
uses: docker/login-action@v1.14.1
|
|
with:
|
|
registry: ${{ env.REGISTRY }}
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Build and publish image
|
|
uses: docker/build-push-action@v2.9.0
|
|
with:
|
|
context: ./proto
|
|
file: ./proto/Dockerfile
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
tags: ${{ steps.prep.outputs.tags }}
|