name: Publish gRPC images for smoke tests

on:
  push:
    paths:
      - 'smoke-tests/images/grpc/**'
      - '.github/workflows/publish-smoke-test-grpc-images.yml'
    branches:
      - main
  workflow_dispatch:

jobs:
  publish:
    uses: ./.github/workflows/reusable-smoke-test-images.yml
    with:
      project: ":smoke-tests:images:grpc"
      publish: true

  open-issue-on-failure:
    needs: publish
    if: failure()
    uses: ./.github/workflows/reusable-open-issue-on-failure.yml
