optional release builder

This commit is contained in:
Denis Angell
2025-03-28 20:42:18 +01:00
parent ddbbe91e5a
commit 9a90a7ffdc
2 changed files with 9 additions and 3 deletions

View File

@@ -3,8 +3,12 @@ name: Release - SH Runner
on: on:
push: push:
branches: ["dev", "candidate", "release"] branches: ["dev", "candidate", "release"]
pull_request: workflow_dispatch:
branches: ["dev", "candidate", "release"] inputs:
reason:
description: 'Release Build'
required: false
default: 'Manual PR testing'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
@@ -15,6 +19,7 @@ env:
jobs: jobs:
checkout: checkout:
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
runs-on: [self-hosted, vanity] runs-on: [self-hosted, vanity]
outputs: outputs:
checkout_path: ${{ steps.vars.outputs.checkout_path }} checkout_path: ${{ steps.vars.outputs.checkout_path }}

View File

@@ -72,7 +72,8 @@ fi
STATIC_CONTAINER=$(docker ps -a | grep $CONTAINER_NAME |wc -l) STATIC_CONTAINER=$(docker ps -a | grep $CONTAINER_NAME |wc -l)
if [[ "$STATIC_CONTAINER" -gt "0" && "$GITHUB_REPOSITORY" != "" ]]; then # if [[ "$STATIC_CONTAINER" -gt "0" && "$GITHUB_REPOSITORY" != "" ]]; then
if false; then
echo "Static container, execute in static container to have max. cache" echo "Static container, execute in static container to have max. cache"
docker start $CONTAINER_NAME docker start $CONTAINER_NAME
docker exec -i $CONTAINER_NAME bash -x /io/build-core.sh "$GITHUB_REPOSITORY" "$GITHUB_SHA" "$BUILD_CORES" "$GITHUB_RUN_NUMBER" docker exec -i $CONTAINER_NAME bash -x /io/build-core.sh "$GITHUB_REPOSITORY" "$GITHUB_SHA" "$BUILD_CORES" "$GITHUB_RUN_NUMBER"