mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
optional release builder
This commit is contained in:
@@ -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 }}
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user