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: Install Modern Docker CLI and Compose run: | curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-26.1.4.tgz | tar xz -C /tmp mv /tmp/docker/docker /usr/local/bin/ curl -fsSL https://github.com/docker/compose/releases/download/v2.27.1/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose - 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"