mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-18 04:53:59 +02:00
fix: update branch name from main to master in build-push workflows
This commit is contained in:
12
.github/workflows/build-push-backend.yml
vendored
12
.github/workflows/build-push-backend.yml
vendored
@@ -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: |
|
||||
|
||||
16
.github/workflows/build-push-frontend.yml
vendored
16
.github/workflows/build-push-frontend.yml
vendored
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user