mirror of
https://github.com/Lapikud/tipilan.git
synced 2026-05-08 18:08:32 +00:00
Merge pull request #117 from Lapikud/workflow
Change workflow to allow dev env
This commit is contained in:
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@@ -8,13 +8,18 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
default: teaser-2026
|
default: teaser-2026
|
||||||
type: string
|
type: string
|
||||||
|
runner:
|
||||||
|
description: Runner label to use for the build
|
||||||
|
required: false
|
||||||
|
default: prox-1
|
||||||
|
type: string
|
||||||
secrets:
|
secrets:
|
||||||
USER_AUTH:
|
USER_AUTH:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: prox-1
|
runs-on: ${{ inputs.runner }}
|
||||||
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,13 +2,19 @@ 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: prox-1
|
runs-on: ${{ inputs.runner }}
|
||||||
steps:
|
steps:
|
||||||
- name: Restart NextJS service
|
- name: Restart NextJS service
|
||||||
env:
|
env:
|
||||||
|
|||||||
35
.github/workflows/main.yml
vendored
35
.github/workflows/main.yml
vendored
@@ -4,6 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- teaser-2026
|
- teaser-2026
|
||||||
|
- development
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
ref:
|
ref:
|
||||||
@@ -12,16 +13,42 @@ on:
|
|||||||
default: teaser-2026
|
default: teaser-2026
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
env:
|
||||||
|
REF_NAME: ${{ github.event.inputs.ref || github.ref_name }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build_teaser:
|
||||||
|
if: ${{ env.REF_NAME == 'teaser-2026' }}
|
||||||
uses: ./.github/workflows/build.yml
|
uses: ./.github/workflows/build.yml
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.inputs.ref || github.ref_name }}
|
ref: ${{ env.REF_NAME }}
|
||||||
|
runner: prox-1
|
||||||
secrets:
|
secrets:
|
||||||
USER_AUTH: ${{ secrets.USER_AUTH }}
|
USER_AUTH: ${{ secrets.USER_AUTH }}
|
||||||
|
|
||||||
deploy:
|
deploy_teaser:
|
||||||
needs: build
|
if: ${{ env.REF_NAME == 'teaser-2026' }}
|
||||||
|
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: ${{ env.REF_NAME == 'development' }}
|
||||||
|
uses: ./.github/workflows/build.yml
|
||||||
|
with:
|
||||||
|
ref: ${{ env.REF_NAME }}
|
||||||
|
runner: prox-2
|
||||||
|
secrets:
|
||||||
|
USER_AUTH: ${{ secrets.USER_AUTH }}
|
||||||
|
|
||||||
|
deploy_dev:
|
||||||
|
if: ${{ env.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