fix: update branch name from main to master in build-push workflows

This commit is contained in:
maxDorninger
2025-05-30 13:18:25 +02:00
parent 316425a6c5
commit 33d9e6e25b
2 changed files with 14 additions and 14 deletions

View File

@@ -3,17 +3,17 @@ name: Build and Push Backend Docker Image
on:
push:
branches:
- main # Adjust if your default branch is different
- master
tags:
- 'v*.*.*' # Triggers on version tags like v1.0.0
workflow_dispatch: # Allows manual triggering from the Actions tab
- 'v*.*.*'
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read # To checkout the repository
packages: write # To push Docker images to GHCR
contents: read
packages: write
steps:
- name: Checkout repository
@@ -46,7 +46,7 @@ jobs:
with:
context: .
file: ./Dockerfile
push: ${{ github.event_name != 'pull_request' }} # Do not push on PRs
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |

View File

@@ -3,20 +3,20 @@ name: Build and Push Frontend Docker Image
on:
push:
branches:
- main # Adjust if your default branch is different
- master
tags:
- 'v*.*.*' # Triggers on version tags like v1.0.0
- 'v*.*.*'
paths:
- 'web/**' # Only run if files in web/ directory change
- '.github/workflows/build-push-frontend.yml' # Or if the workflow itself changes
workflow_dispatch: # Allows manual triggering from the Actions tab
- 'web/**'
- '.github/workflows/build-push-frontend.yml'
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read # To checkout the repository
packages: write # To push Docker images to GHCR
contents: read
packages: write
steps:
- name: Checkout repository
@@ -49,7 +49,7 @@ jobs:
with:
context: ./web
file: ./web/Dockerfile
push: ${{ github.event_name != 'pull_request' }} # Do not push on PRs
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |