issues/27: ci manual run on prod test stage only

This commit is contained in:
Valery Petrov
2026-05-28 19:56:56 +03:00
parent 8579fe3472
commit 42d881b700
+14 -2
View File
@@ -1,11 +1,20 @@
name: backend-ci-cd
on:
workflow_dispatch:
inputs:
branch:
description: 'Ветка для прогона тестов'
required: true
default: test
type: choice
options:
- prod
- test
- stage
push:
tags:
- 'backend-v*'
pull_request:
branches: [prod, test, stage]
env:
REGISTRY: gitea-http.gitea.svc.cluster.local:3000
@@ -14,9 +23,12 @@ env:
jobs:
test:
if: github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/backend-v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.branch || github.ref }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with: