This commit is contained in:
parent
453d49ffc1
commit
4da26a2622
1 changed files with 4 additions and 7 deletions
|
|
@ -10,16 +10,11 @@ on:
|
|||
jobs:
|
||||
argocd-diff-preview:
|
||||
runs-on: docker
|
||||
services:
|
||||
docker:
|
||||
image: docker:27-dind
|
||||
options: --privileged
|
||||
env:
|
||||
DOCKER_TLS_CERTDIR: ""
|
||||
container:
|
||||
options: --volume /var/run/docker.sock:/var/run/docker.sock
|
||||
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@v6
|
||||
with:
|
||||
|
|
@ -41,6 +36,8 @@ 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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue