Skip to content

chore(deps): Bump @tanstack/react-query from 5.90.12 to 5.90.14 #928

chore(deps): Bump @tanstack/react-query from 5.90.12 to 5.90.14

chore(deps): Bump @tanstack/react-query from 5.90.12 to 5.90.14 #928

Workflow file for this run

name: Docker Build and Publish
on:
workflow_run:
workflows: ["Build"]
types:
- completed
push:
tags:
- 'v*' # Also run on version tags
pull_request:
branches:
- main
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push:
runs-on: ubuntu-latest
# Only run if triggered by workflow_run and the build workflow succeeded,
# or if triggered by tags/workflow_dispatch/pull_request
if: |
github.event_name == 'workflow_dispatch' ||
github.event_name == 'push' ||
github.event_name == 'pull_request' ||
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
# When triggered by workflow_run, checkout the commit from the triggering workflow
ref: ${{ github.event.workflow_run.head_sha || github.ref }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max