2
Some checks failed
Deploy Production / Deploy to Staging (push) Has been skipped
Go Linter / Build golang services (api_gateway) (push) Has been cancelled
Go Linter / Push Docker Images (api_gateway) (push) Has been cancelled
Go Linter / Run golangci-lint (api_gateway) (push) Has been cancelled
Some checks failed
Deploy Production / Deploy to Staging (push) Has been skipped
Go Linter / Build golang services (api_gateway) (push) Has been cancelled
Go Linter / Push Docker Images (api_gateway) (push) Has been cancelled
Go Linter / Run golangci-lint (api_gateway) (push) Has been cancelled
This commit is contained in:
25
.gitea/workflows/deploy_prod.yaml
Normal file
25
.gitea/workflows/deploy_prod.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Deploy Production
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master, release]
|
||||
pull_request:
|
||||
branches: [master, release]
|
||||
|
||||
jobs:
|
||||
deploy_to_staging:
|
||||
name: Deploy to Staging
|
||||
runs-on: ubuntu-22.04
|
||||
if: ${{ gitea.ref == 'refs/heads/release' }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Manual Approval Step
|
||||
run: echo "Ручное подтверждение получено. Запуск деплоя..."
|
||||
|
||||
- name: Deployment Script (Заглушка)
|
||||
run: |
|
||||
echo "Здесь будет скрипт деплоя на staging"
|
||||
# TODO: Реальный скрипт деплоя
|
||||
echo "Симуляция деплоя..."
|
Reference in New Issue
Block a user