Skip to content

Commit

Permalink
Test custom Argo CD installation
Browse files Browse the repository at this point in the history
  • Loading branch information
dag-andersen committed Nov 7, 2024
1 parent 76606de commit 4591056
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/generate-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,28 @@ jobs:
ref: main
path: main

- name: Set ArgoCD Custom Values
run: |
cat > values.yaml << "EOF"
# set whatever helm values you want
configs:
cm:
kustomize.buildOptions: --load-restrictor LoadRestrictionsNone --enable-helm
EOF
- name: Generate Diff
run: |
docker build pull-request -f pull-request/Dockerfile_AMD64 -t image
docker run \
--network=host \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(pwd)/main:/base-branch \
-v $(pwd)/pull-request:/target-branch \
-v $(pwd)/output:/output \
-v $(pwd)/values.yaml:/argocd-config/values.yaml \
-e TARGET_BRANCH=${{ github.head_ref }} \
-e REPO=${{ github.repository }} \
dagandersen/argocd-diff-preview:v0.0.24
image --debug
- name: Post diff as comment
run: |
Expand Down

0 comments on commit 4591056

Please sign in to comment.