issues/27: ci manual run on prod test stage only
This commit is contained in:
@@ -1,11 +1,20 @@
|
|||||||
name: adminpanel-ci-cd
|
name: adminpanel-ci-cd
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
branch:
|
||||||
|
description: 'Ветка для прогона тестов'
|
||||||
|
required: true
|
||||||
|
default: test
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- prod
|
||||||
|
- test
|
||||||
|
- stage
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'adminpanel-v*'
|
- 'adminpanel-v*'
|
||||||
pull_request:
|
|
||||||
branches: [prod, test, stage]
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: gitea-http.gitea.svc.cluster.local:3000
|
REGISTRY: gitea-http.gitea.svc.cluster.local:3000
|
||||||
@@ -14,9 +23,12 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
if: github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/adminpanel-v')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.branch || github.ref }}
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '24'
|
node-version: '24'
|
||||||
|
|||||||
Reference in New Issue
Block a user