Compare commits
2 Commits
b2dff78489
...
be634d9aab
| Author | SHA1 | Date | |
|---|---|---|---|
| be634d9aab | |||
| 3744fa2262 |
25
.gitea/workflows/dispatch_prod.yaml
Normal file
25
.gitea/workflows/dispatch_prod.yaml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
name: Deploy Pipeline with Manual Trigger
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
message:
|
||||||
|
description: 'Custom message'
|
||||||
|
required: false
|
||||||
|
default: 'Trigger - succesed'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
name: Deployment Task
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Show Message
|
||||||
|
run: |
|
||||||
|
echo "Получилось!"
|
||||||
19
.gitea/workflows/merge_prod.yaml
Normal file
19
.gitea/workflows/merge_prod.yaml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
name: Simple Deploy Pipeline
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
print-message:
|
||||||
|
name: Print Welcome Message
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Print message
|
||||||
|
run: echo "Красота во всем"
|
||||||
Reference in New Issue
Block a user