Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@ on:
required: false
default: teaser-2026
type: string
runner:
description: Runner label to use for the build
required: false
default: prox-1
type: string
secrets:
USER_AUTH:
required: true

jobs:
build:
runs-on: prox-1
runs-on: ${{ inputs.runner }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@ name: deploy

on:
workflow_call:
inputs:
runner:
description: Runner label to use for the deploy
required: false
default: prox-1
type: string
secrets:
USER_AUTH:
required: true

jobs:
deploy:
runs-on: prox-1
runs-on: ${{ inputs.runner }}
steps:
- name: Restart NextJS service
env:
Expand Down
35 changes: 31 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- teaser-2026
- development
workflow_dispatch:
inputs:
ref:
Expand All @@ -12,16 +13,42 @@ on:
default: teaser-2026
type: string

env:
REF_NAME: ${{ github.event.inputs.ref || github.ref_name }}

jobs:
build:
build_teaser:
if: ${{ env.REF_NAME == 'teaser-2026' }}
uses: ./.github/workflows/build.yml
with:
ref: ${{ env.REF_NAME }}
runner: prox-1
secrets:
USER_AUTH: ${{ secrets.USER_AUTH }}

deploy_teaser:
if: ${{ env.REF_NAME == 'teaser-2026' }}
needs: build_teaser
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: ${{ github.event.inputs.ref || github.ref_name }}
ref: ${{ env.REF_NAME }}
runner: prox-2
secrets:
USER_AUTH: ${{ secrets.USER_AUTH }}

deploy:
needs: build
deploy_dev:
if: ${{ env.REF_NAME == 'development' }}
needs: build_dev
uses: ./.github/workflows/deploy.yml
with:
runner: prox-2
secrets:
USER_AUTH: ${{ secrets.USER_AUTH }}