ci: add Gitea Actions workflow
Production Deployment Pipeline / deploy (push) Failing after 9s
Details
Production Deployment Pipeline / deploy (push) Failing after 9s
Details
This commit is contained in:
parent
32756c7be3
commit
5054e1c9fb
|
|
@ -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"
|
||||||
3
main.yml
3
main.yml
|
|
@ -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:
|
||||||
# -----------------------------------------------------------------
|
# -----------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue