fix: update build workflow default branch to staging
- Change default branch from 'main' to 'staging' - Add choice input type for branch selection - Add debug check for RUNTIME_IMAGE_NAME - Remove unused env variable
This commit is contained in:
@@ -13,7 +13,12 @@ on:
|
|||||||
branch:
|
branch:
|
||||||
description: 'Branch to build from'
|
description: 'Branch to build from'
|
||||||
required: false
|
required: false
|
||||||
default: 'main'
|
type: choice
|
||||||
|
options:
|
||||||
|
- staging
|
||||||
|
- main
|
||||||
|
- develop
|
||||||
|
default: 'staging'
|
||||||
force_build:
|
force_build:
|
||||||
description: 'Force image build even if no runtime changes detected'
|
description: 'Force image build even if no runtime changes detected'
|
||||||
type: boolean
|
type: boolean
|
||||||
@@ -46,7 +51,7 @@ jobs:
|
|||||||
REF="${{ github.ref_name }}"
|
REF="${{ github.ref_name }}"
|
||||||
fi
|
fi
|
||||||
if [ -z "$REF" ]; then
|
if [ -z "$REF" ]; then
|
||||||
REF="${{ inputs.branch || 'main' }}"
|
REF="${{ inputs.branch || 'staging' }}"
|
||||||
fi
|
fi
|
||||||
URL="https://git.michaelschiemer.de/${{ github.repository }}/raw/${REF}/scripts/ci/clone_repo.sh"
|
URL="https://git.michaelschiemer.de/${{ github.repository }}/raw/${REF}/scripts/ci/clone_repo.sh"
|
||||||
mkdir -p /tmp/ci-tools
|
mkdir -p /tmp/ci-tools
|
||||||
@@ -79,7 +84,7 @@ jobs:
|
|||||||
REF_NAME="$INPUT_BRANCH"
|
REF_NAME="$INPUT_BRANCH"
|
||||||
fi
|
fi
|
||||||
if [ -z "$REF_NAME" ]; then
|
if [ -z "$REF_NAME" ]; then
|
||||||
REF_NAME="main"
|
REF_NAME="staging"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
REPO="${{ github.repository }}"
|
REPO="${{ github.repository }}"
|
||||||
@@ -204,8 +209,6 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
image_ref: ${{ steps.set-result.outputs.image_ref }}
|
image_ref: ${{ steps.set-result.outputs.image_ref }}
|
||||||
built: ${{ steps.set-result.outputs.built }}
|
built: ${{ steps.set-result.outputs.built }}
|
||||||
env:
|
|
||||||
RUNTIME_IMAGE_NAME: ${{ env.RUNTIME_IMAGE_NAME }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download CI helpers
|
- name: Download CI helpers
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -218,7 +221,7 @@ jobs:
|
|||||||
REF="${{ github.ref_name }}"
|
REF="${{ github.ref_name }}"
|
||||||
fi
|
fi
|
||||||
if [ -z "$REF" ]; then
|
if [ -z "$REF" ]; then
|
||||||
REF="${{ inputs.branch || 'main' }}"
|
REF="${{ inputs.branch || 'staging' }}"
|
||||||
fi
|
fi
|
||||||
URL="https://git.michaelschiemer.de/${{ github.repository }}/raw/${REF}/scripts/ci/clone_repo.sh"
|
URL="https://git.michaelschiemer.de/${{ github.repository }}/raw/${REF}/scripts/ci/clone_repo.sh"
|
||||||
mkdir -p /tmp/ci-tools
|
mkdir -p /tmp/ci-tools
|
||||||
@@ -377,6 +380,12 @@ jobs:
|
|||||||
|
|
||||||
echo "TARGET_REGISTRY=$TARGET_REGISTRY" >> $GITHUB_ENV
|
echo "TARGET_REGISTRY=$TARGET_REGISTRY" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
# Debug: Check if RUNTIME_IMAGE_NAME is set
|
||||||
|
if [ -z "$RUNTIME_IMAGE_NAME" ]; then
|
||||||
|
echo "⚠️ RUNTIME_IMAGE_NAME is not set, using default: framework-runtime"
|
||||||
|
RUNTIME_IMAGE_NAME="framework-runtime"
|
||||||
|
fi
|
||||||
|
|
||||||
IMAGE_NAME="$RUNTIME_IMAGE_NAME"
|
IMAGE_NAME="$RUNTIME_IMAGE_NAME"
|
||||||
|
|
||||||
echo "🏗️ Building runtime base image..."
|
echo "🏗️ Building runtime base image..."
|
||||||
@@ -431,7 +440,7 @@ jobs:
|
|||||||
REF="${{ github.ref_name }}"
|
REF="${{ github.ref_name }}"
|
||||||
fi
|
fi
|
||||||
if [ -z "$REF" ]; then
|
if [ -z "$REF" ]; then
|
||||||
REF="${{ inputs.branch || 'main' }}"
|
REF="${{ inputs.branch || 'staging' }}"
|
||||||
fi
|
fi
|
||||||
URL="https://git.michaelschiemer.de/${{ github.repository }}/raw/${REF}/scripts/ci/clone_repo.sh"
|
URL="https://git.michaelschiemer.de/${{ github.repository }}/raw/${REF}/scripts/ci/clone_repo.sh"
|
||||||
mkdir -p /tmp/ci-tools
|
mkdir -p /tmp/ci-tools
|
||||||
@@ -520,7 +529,7 @@ jobs:
|
|||||||
REF="${{ github.ref_name }}"
|
REF="${{ github.ref_name }}"
|
||||||
fi
|
fi
|
||||||
if [ -z "$REF" ]; then
|
if [ -z "$REF" ]; then
|
||||||
REF="${{ inputs.branch || 'main' }}"
|
REF="${{ inputs.branch || 'staging' }}"
|
||||||
fi
|
fi
|
||||||
URL="https://git.michaelschiemer.de/${{ github.repository }}/raw/${REF}/scripts/ci/clone_repo.sh"
|
URL="https://git.michaelschiemer.de/${{ github.repository }}/raw/${REF}/scripts/ci/clone_repo.sh"
|
||||||
mkdir -p /tmp/ci-tools
|
mkdir -p /tmp/ci-tools
|
||||||
|
|||||||
Reference in New Issue
Block a user