backend - towards a better gitops deploy strategy #70

Open
remoll wants to merge 11 commits from feature/staging-deployment-on-pr into main
Showing only changes of commit ec3ed054fd - Show all commits

View File

@@ -21,12 +21,16 @@ jobs:
runs-on: ubuntu-latest
name: Add a comment to the PR to notify about the deployment
steps:
- name: Notify about deployment
uses: https://github.com/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:
- name: Download gitea client
run: |
curl -sSL -o tea https://dl.gitea.com/tea/0.11.0/tea-0.11.0-linux-amd64
chmod +x tea
- name: Post comment
run: |
./tea pr comment ${{ github.event.number }} --body "The backend has been deployed to staging with url https://pr-${{ github.event.number }}.anyway-stg.anydev.info. 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 }})
[![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 }})"
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_BASE_URL: ${{ secrets.GITEA_BASE_URL }}
GITEA_REPO: ${{ secrets.GITEA_REPO }}