Skip to content

A self-hosted media server and file management system

chore: target prod and main rather than main and dev

aminnausin36af7b6b26d9
diff --git a/.github/auto-label.yml b/.github/auto-label.yml
index 27d93fc6..3af7a736 100644
--- a/.github/auto-label.yml
+++ b/.github/auto-label.yml
@@ -31,5 +31,5 @@ docker:
- 'docker/**/**'
- '.dockerignore'
- 'docker-compose.yaml'
- - 'DockerFile'
+ - 'Dockerfile'
- 'startDocker.*'
diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml
index 50f7a48e..5c5d12ad 100644
--- a/.github/workflows/auto-label.yml
+++ b/.github/workflows/auto-label.yml
@@ -1,7 +1,8 @@
name: 'Auto Label'
on:
-- pull_request_target
+ pull_request_target:
+
jobs:
auto-label:
diff --git a/.github/workflows/ci-docker-release.yml b/.github/workflows/ci-docker-release.yml
index d954f7ec..195a7231 100644
--- a/.github/workflows/ci-docker-release.yml
+++ b/.github/workflows/ci-docker-release.yml
@@ -2,7 +2,7 @@ name: CI & Docker Release
on:
push:
- branches: [ 'dev', 'main' ]
+ branches: [ 'dev', 'main', 'prod' ]
workflow_dispatch:
inputs:
bump:
@@ -64,7 +64,7 @@ jobs:
if [[ "${{ github.ref }}" == "refs/heads/dev" ]]; then
- #Only increase patch version if merging feature branch to dev
+ #Only increase patch version if merging feature branch to main (dev)
IS_MERGE=$(git log -1 --pretty=%P | wc -w)
if [ "$IS_MERGE" -gt 1 ]; then
PATCH=$((PATCH + 1))
@@ -81,7 +81,7 @@ jobs:
TAG="${NEW_VERSION}-beta.${BUILD_COUNT}"
DOCKER_TAG="beta"
PRERELEASE=true
- elif [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
+ elif [[ "${{ github.ref }}" == "refs/heads/prod" ]]; then
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
INCREMENT="${{ github.event.inputs.bump }}"
INCREMENT="${INCREMENT:-patch}"
diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml
index 208274e5..a68aaf4f 100644
--- a/.github/workflows/ci-test.yml
+++ b/.github/workflows/ci-test.yml
@@ -2,7 +2,7 @@ name: Code Test
on:
pull_request:
- branches: [ 'dev', 'main' ]
+ branches: [ 'dev', 'main', 'prod' ]
jobs:
run-tests: