fix: Attempt dind
Some checks failed
ArgoCD Diff / argocd-diff-preview (pull_request) Failing after 23s
Some checks failed
ArgoCD Diff / argocd-diff-preview (pull_request) Failing after 23s
This commit is contained in:
parent
5ac1b06c79
commit
f47f2d6bc2
1 changed files with 10 additions and 6 deletions
|
|
@ -10,15 +10,22 @@ on:
|
|||
jobs:
|
||||
argocd-diff-preview:
|
||||
runs-on: docker
|
||||
services:
|
||||
docker:
|
||||
image: docker:27-dind
|
||||
options: --privileged
|
||||
env:
|
||||
DOCKER_TLS_CERTDIR: ""
|
||||
env:
|
||||
PR_NUMBER: ${{ forge.event.pull_request.number }}
|
||||
GITHUB_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
|
||||
DOCKER_HOST: tcp://docker:2375
|
||||
steps:
|
||||
- uses: https://github.com/actions/checkout@v4
|
||||
- uses: https://github.com/actions/checkout@v6
|
||||
with:
|
||||
path: pull-request
|
||||
|
||||
- uses: https://github.com/actions/checkout@v4
|
||||
- uses: https://github.com/actions/checkout@v6
|
||||
with:
|
||||
ref: main
|
||||
path: main
|
||||
|
|
@ -26,18 +33,15 @@ jobs:
|
|||
- name: Generate Diff
|
||||
run: |
|
||||
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 \
|
||||
-e TARGET_BRANCH=refs/pull/$PR_NUMBER/merge \
|
||||
-e REPO=${{ forge.repository }} \
|
||||
dagandersen/argocd-diff-preview:v0.2.1
|
||||
dagandersen/argocd-diff-preview:v0.2.8
|
||||
|
||||
- name: Add comment
|
||||
id: comment
|
||||
if: always()
|
||||
run: |
|
||||
DIFF_BODY=$(cat output/diff.md)
|
||||
payload="{\"body\": $DIFF_BODY}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue