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 runs-on: ubuntu-latest
name: Add a comment to the PR to notify about the deployment name: Add a comment to the PR to notify about the deployment
steps: steps:
- name: Notify about deployment - name: Download gitea client
uses: https://github.com/marocchino/sticky-pull-request-comment@v2 run: |
with: curl -sSL -o tea https://dl.gitea.com/tea/0.11.0/tea-0.11.0-linux-amd64
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} chmod +x tea
header: backend deployed to production - name: Post comment
message: | run: |
The backend has been deployed to staging with url <https://pr-{{ github.event.number }}.anyway-stg.anydev.info>. Check the deployment status in ArgoCD: ./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 }}