mirror of
https://github.com/Lapikud/tipilan.git
synced 2026-05-08 10:00:46 +00:00
Only allow development branch to be built & deploy
This commit is contained in:
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@@ -6,12 +6,7 @@ on:
|
|||||||
ref:
|
ref:
|
||||||
description: Branch or tag to checkout
|
description: Branch or tag to checkout
|
||||||
required: false
|
required: false
|
||||||
default: teaser-2026
|
default: development
|
||||||
type: string
|
|
||||||
runner:
|
|
||||||
description: Runner label to use for the build
|
|
||||||
required: false
|
|
||||||
default: prox-1
|
|
||||||
type: string
|
type: string
|
||||||
secrets:
|
secrets:
|
||||||
USER_AUTH:
|
USER_AUTH:
|
||||||
@@ -19,7 +14,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ${{ inputs.runner }}
|
runs-on: prox-2
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
8
.github/workflows/deploy.yml
vendored
8
.github/workflows/deploy.yml
vendored
@@ -2,19 +2,13 @@ name: deploy
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
|
||||||
runner:
|
|
||||||
description: Runner label to use for the deploy
|
|
||||||
required: false
|
|
||||||
default: prox-1
|
|
||||||
type: string
|
|
||||||
secrets:
|
secrets:
|
||||||
USER_AUTH:
|
USER_AUTH:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ${{ inputs.runner }}
|
runs-on: prox-2
|
||||||
steps:
|
steps:
|
||||||
- name: Restart NextJS service
|
- name: Restart NextJS service
|
||||||
env:
|
env:
|
||||||
|
|||||||
38
.github/workflows/main.yml
vendored
38
.github/workflows/main.yml
vendored
@@ -3,49 +3,17 @@ name: main
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- teaser-2026
|
|
||||||
- development
|
- development
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
|
||||||
ref:
|
|
||||||
description: Branch or tag to build and deploy
|
|
||||||
required: false
|
|
||||||
default: teaser-2026
|
|
||||||
type: string
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_teaser:
|
build:
|
||||||
if: ${{ (github.event.inputs.ref || github.ref_name) == 'teaser-2026' }}
|
|
||||||
uses: ./.github/workflows/build.yml
|
uses: ./.github/workflows/build.yml
|
||||||
with:
|
|
||||||
ref: ${{ github.event.inputs.ref || github.ref_name }}
|
|
||||||
runner: prox-1
|
|
||||||
secrets:
|
secrets:
|
||||||
USER_AUTH: ${{ secrets.USER_AUTH }}
|
USER_AUTH: ${{ secrets.USER_AUTH }}
|
||||||
|
|
||||||
deploy_teaser:
|
deploy:
|
||||||
if: ${{ (github.event.inputs.ref || github.ref_name) == 'teaser-2026' }}
|
needs: build
|
||||||
needs: build_teaser
|
|
||||||
uses: ./.github/workflows/deploy.yml
|
uses: ./.github/workflows/deploy.yml
|
||||||
with:
|
|
||||||
runner: prox-1
|
|
||||||
secrets:
|
|
||||||
USER_AUTH: ${{ secrets.USER_AUTH }}
|
|
||||||
|
|
||||||
build_dev:
|
|
||||||
if: ${{ (github.event.inputs.ref || github.ref_name) == 'development' }}
|
|
||||||
uses: ./.github/workflows/build.yml
|
|
||||||
with:
|
|
||||||
ref: ${{ github.event.inputs.ref || github.ref_name }}
|
|
||||||
runner: prox-2
|
|
||||||
secrets:
|
|
||||||
USER_AUTH: ${{ secrets.USER_AUTH }}
|
|
||||||
|
|
||||||
deploy_dev:
|
|
||||||
if: ${{ (github.event.inputs.ref || github.ref_name) == 'development' }}
|
|
||||||
needs: build_dev
|
|
||||||
uses: ./.github/workflows/deploy.yml
|
|
||||||
with:
|
|
||||||
runner: prox-2
|
|
||||||
secrets:
|
secrets:
|
||||||
USER_AUTH: ${{ secrets.USER_AUTH }}
|
USER_AUTH: ${{ secrets.USER_AUTH }}
|
||||||
|
|||||||
Reference in New Issue
Block a user