-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.44 KB
/
argocd-diff.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: ArgoCD Diff
on:
pull_request:
branches:
- main
jobs:
argocd-diff:
name: Generate ArgoCD Diff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ghactions
# renovate: datasource=github-releases depName=tailscale/tailscale
version: 1.60.1
- uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: clowdhaus/argo-cd-action@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# renovate: datasource=github-releases depName=argoproj/argo-cd
version: 2.10.2
command: version
options: --grpc-web --auth-token ${{ secrets.ARGOCD_TOKEN }} --server argocd.tailnet-4d89.ts.net
- run: task apps:overlays:diff-pr-all -- --grpc-web --revision ${{ github.event.pull_request.head.sha }}
env:
ARGOCD_SERVER: argocd.tailnet-4d89.ts.net
ARGOCD_AUTH_TOKEN: ${{ secrets.ARGOCD_TOKEN }}
outputFile: "${{ github.workspace }}/.local/diff-pr-all.md"
- name: Post diff in comment
uses: mshick/add-pr-comment@v2
with:
message-id: argocd-diff
message-path: "${{ github.workspace }}/.local/diff-pr-all.md"