fix: build on push tags (#785)

This commit is contained in:
2025-12-11 13:30:36 +01:00
committed by GitHub
parent a47a5f5781
commit d7f140b7d1
2 changed files with 6 additions and 22 deletions

View File

@@ -1,12 +1,9 @@
name: Build and Push Backend Docker Image (Docker Hub) name: Build and Push Backend Docker Image (Docker Hub)
on: on:
pull_request: push:
types: tags:
- closed - "v*"
paths:
- "server/**"
- ".github/workflows/dockerhub-backend.yml"
workflow_dispatch: workflow_dispatch:
env: env:
@@ -16,11 +13,6 @@ env:
jobs: jobs:
build-and-push: build-and-push:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: |
github.event_name == 'workflow_dispatch' ||
(github.event.pull_request.merged == true &&
startsWith(github.event.pull_request.head.ref, 'release-please--branches--'))
permissions: permissions:
contents: read contents: read

View File

@@ -1,12 +1,9 @@
name: Build and Push Frontend Docker Image name: Build and Push Frontend Docker Image
on: on:
pull_request: push:
types: tags:
- closed - "v*"
paths:
- "www/**"
- ".github/workflows/dockerhub-frontend.yml"
workflow_dispatch: workflow_dispatch:
env: env:
@@ -16,11 +13,6 @@ env:
jobs: jobs:
build-and-push: build-and-push:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: |
github.event_name == 'workflow_dispatch' ||
(github.event.pull_request.merged == true &&
startsWith(github.event.pull_request.head.ref, 'release-please--branches--'))
permissions: permissions:
contents: read contents: read