ci: add Gitea Actions workflow
Production Deployment Pipeline / deploy (push) Failing after 9s Details

This commit is contained in:
mahdi 2026-07-20 22:26:44 +03:30
parent 32756c7be3
commit 5054e1c9fb
2 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1,26 @@
name: Production Deployment Pipeline
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Deploy Hello World Application
run: |
docker pull nginxdemos/hello:plain-text
docker compose -f ./stacks/hello-world/docker-compose.yml up -d
- name: Send Telegram Notification
if: always()
run: |
curl -s -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" \
-d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}" \
-d "parse_mode=Markdown" \
-d "text=🚀 *Gitea Actions Deployment Completed!*%0A*Project:* ${{ gitea.repository }}%0A*Status:* Success"

View File

@ -34,7 +34,8 @@
- role: ../../ansible/roles/cicd-platform - role: ../../ansible/roles/cicd-platform
vars: vars:
# Options: gitlab-saas, gitea-selfhosted, gitlab-ce # Options: gitlab-saas, gitea-selfhosted, gitlab-ce
cicd_provider: "gitlab-saas" #cicd_provider: "gitlab-saas"
cicd_provider: "gitea-selfhosted"
tasks: tasks:
# ----------------------------------------------------------------- # -----------------------------------------------------------------