Skip to content

Re-order error classification for MySQLExecuteError #20234

Re-order error classification for MySQLExecuteError

Re-order error classification for MySQLExecuteError #20234

Workflow file for this run

name: Dev Docker Images
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
docker-build-external:
if: |
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name != github.repository
strategy:
matrix:
# ubuntu-latest leverages larger GH runner pool & completes in ~30s instead of ~3m
runner: [ubuntu-latest]
runs-on: ${{ matrix.runner }}
permissions:
contents: read
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: false
- name: generate or hydrate protos
uses: ./.github/actions/genprotos
- name: Set Short Commit Hash
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Build PeerDB Images
run: |
docker buildx bake \
--file ./docker-bake.hcl \
--set '*.platform=linux/amd64' \
--set '*.output=type=cacheonly'
env:
SHA_SHORT: dev-${{ steps.vars.outputs.sha_short }}
TAG: latest-dev
docker-build:
if: |
github.event_name == 'push' ||
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
strategy:
matrix:
# ubuntu-latest leverages larger GH runner pool & completes in ~30s instead of ~3m
runner: [ubuntu-latest]
runs-on: ${{ matrix.runner }}
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: false
- name: generate or hydrate protos
uses: ./.github/actions/genprotos
- uses: depot/setup-action@15c09a5f77a0840ad4bce955686522a257853461 # v1
- name: Login to GitHub Container Registry
uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Set Short Commit Hash
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Build (optionally publish) PeerDB Images
uses: depot/bake-action@1d58c2668346981089b088b7ef36755b206b20e9 # v1
with:
token: ${{ secrets.DEPOT_TOKEN }}
files: ./docker-bake.hcl
push: ${{ github.ref == 'refs/heads/main' }}
env:
SHA_SHORT: dev-${{ steps.vars.outputs.sha_short }}
TAG: latest-dev