Skip to content

refactor(dao): answer a missing row with the domain's own "not found" #1236

refactor(dao): answer a missing row with the domain's own "not found"

refactor(dao): answer a missing row with the domain's own "not found" #1236

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: ShvatkaBotBuild
on:
push:
branches:
- master
- "claude/**"
- "codex/**"
- "feature/**"
- "tech/**"
- "fix/**"
tags: ["*.*.*", "*.*.*-dev"]
jobs:
lint-and-test:
uses: ./.github/workflows/test.yml
secrets: inherit
build:
needs: lint-and-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Get current date
id: date
run: |
echo "BUILD_AT=$(date +'%Y-%m-%dT%H:%M:%S%z')" >> "$GITHUB_OUTPUT"
echo "VCS_HASH=${GITHUB_SHA}" >> "$GITHUB_OUTPUT"
echo "COMMIT_AT=$(git show -s --format=%cI ${GITHUB_SHA})" >> "$GITHUB_OUTPUT"
echo "VCS_NAME=${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT"
- name: Determine docker tag
id: tag
run: |
if [[ "${GITHUB_REF_TYPE}" == "tag" ]]; then
echo "TAG=${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT"
elif [[ "${GITHUB_REF_NAME}" == "master" ]]; then
echo "TAG=latest" >> "$GITHUB_OUTPUT"
else
echo "TAG=dev" >> "$GITHUB_OUTPUT"
fi
- uses: docker/setup-buildx-action@v4
- uses: docker/login-action@v4
with:
registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v7
with:
context: .
push: true
tags: bomzheg/shvatka:${{ steps.tag.outputs.TAG }}
build-args: |
BUILD_AT=${{ steps.date.outputs.BUILD_AT }}
VCS_HASH=${{ steps.date.outputs.VCS_HASH }}
COMMIT_AT=${{ steps.date.outputs.COMMIT_AT }}
VCS_NAME=${{ steps.date.outputs.VCS_NAME }}
cache-from: type=gha
cache-to: type=gha,mode=max