backend - towards a better gitops deploy strategy #70
@@ -3,6 +3,9 @@ on:
 | 
			
		||||
    tags:
 | 
			
		||||
      - v*
 | 
			
		||||
 | 
			
		||||
permissions:
 | 
			
		||||
  pull-requests: write
 | 
			
		||||
 | 
			
		||||
name: Build and deploy the backend to production
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
 
 | 
			
		||||
@@ -16,3 +16,17 @@ jobs:
 | 
			
		||||
      tag: sha${{ github.sha }}
 | 
			
		||||
    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 <https://pr-{{ github.event.number }}.anyway-stg.anydev.info>. Check the deployment status in ArgoCD:
 | 
			
		||||
 | 
			
		||||
            [](https://argocd.kluster.moll.re/applications/anydev-anyway-backend-stg-pr-{{ github.event.number }})
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user