Skip to content

Commit

Permalink
ci: run argocd diff on app-of-apps on pull requests
Browse files Browse the repository at this point in the history
Add a GitHub Actions workflow that runs `argocd app diff` on the
app-of-apps application when a pull request is opened or updated.
  • Loading branch information
d3adb5 committed Apr 6, 2024
1 parent 2d4ce79 commit 442f8dc
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Argo CD

on:
pull_request:
branches:
- master

jobs:
diff:
name: Differences
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: clowdhaus/argo-cd-action@v2.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
command: version
options: --client
- name: Gather differences in the app of apps
env:
ARGOCD_AUTH_TOKEN: ${{ secrets.ARGOCD_AUTH_TOKEN }}
run: |
argocd app diff app-of-apps --revision ${{ github.sha }} \
--server ${{ vars.ARGOCD_SERVER }} --grpc-web

0 comments on commit 442f8dc

Please sign in to comment.