From 41d076e3d64eccc0bc1f0c3b3a3386ed402aec9d Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Tue, 14 Oct 2025 14:11:18 +0200 Subject: [PATCH] add a comment containing additional deployment information --- .../workflows/backend_build-deploy-prod.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.gitea/workflows/backend_build-deploy-prod.yaml b/.gitea/workflows/backend_build-deploy-prod.yaml index f9df90e..8077366 100644 --- a/.gitea/workflows/backend_build-deploy-prod.yaml +++ b/.gitea/workflows/backend_build-deploy-prod.yaml @@ -3,6 +3,9 @@ on: tags: - v* +permissions: + pull-requests: write + name: Build and deploy the backend to production jobs: @@ -14,3 +17,18 @@ jobs: tag: ${{ github.ref_name }} secrets: PACKAGE_REGISTRY_ACCESS: ${{ secrets.PACKAGE_REGISTRY_ACCESS }} + + + notify: + runs-on: ubuntu-latest + name: Add a comment to the PR to notify about the deployment + steps: + - name: Notify about deployment + uses: marocchino/sticky-pull-request-comment@v2 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + header: backend deployed to production + message: | + The backend has been deployed to staging with url . Check the deployment status in ArgoCD: + + [![App Status](https://argocd.kluster.moll.re/api/badge?name=anydev-anyway-backend-stg-pr-{{ github.event.number }}&revision=true&showAppName=true)](https://argocd.kluster.moll.re/applications/anydev-anyway-backend-stg-pr-{{ github.event.number }})