Skip to content

housekeeping: Update google.golang.org/genproto/googleapis/rpc digest… #1941

housekeeping: Update google.golang.org/genproto/googleapis/rpc digest…

housekeeping: Update google.golang.org/genproto/googleapis/rpc digest… #1941

Workflow file for this run

name: docker
on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- Dockerfile
- .github/workflows/docker.yml
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- if: github.ref == 'refs/heads/main'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: determine tags
id: tags
run: |
DOCKER_IMAGE=lyft/clutch
VERSION=latest
TAGS="${DOCKER_IMAGE}:${VERSION}"
TAGS="$TAGS,${DOCKER_IMAGE}:sha-${GITHUB_SHA::7}"
echo "tags=${TAGS}" >>${GITHUB_OUTPUT}
- name: build and push
if: github.ref == 'refs/heads/main'
uses: docker/[email protected]
with:
tags: ${{ steps.tags.outputs.tags }}
push: true
cache-from: type=registry,ref=lyft/clutch:latest
- name: build
if: github.ref != 'refs/heads/main'
uses: docker/[email protected]
with:
tags: ${{ steps.tags.outputs.tags }}
push: false
cache-from: type=registry,ref=lyft/clutch:latest