Compare commits

..

2 Commits

Author SHA1 Message Date
13ea1a2620 refactor: seperate kali and fedora container workflows\
Some checks failed
Build container / fedora-build (push) Has been cancelled
2025-10-19 21:13:46 +02:00
72c7271163 feat: add -x11 flag 2025-10-19 21:02:12 +02:00
3 changed files with 54 additions and 9 deletions

View File

@@ -2,8 +2,22 @@ name: Build container
on:
push:
branches: ["main"]
paths:
[
"containers/fedora/**",
"containers/go/**",
"containers/infra/**",
".gitea/workflows/kali.yaml",
]
pull_request:
branches: ["main"]
paths:
[
"containers/fedora/**",
"containers/go/**",
"containers/infra/**",
".gitea/workflows/kali.yaml",
]
schedule:
- cron: "0 16 * * FRI"
@@ -48,12 +62,3 @@ jobs:
tags: |
git.plabble.org/job79/infra:${{ github.ref_name }}
git.plabble.org/job79/infra:latest
- name: Build and push kali container
uses: docker/build-push-action@v5
with:
context: ./containers/kali
file: ./containers/kali/Containerfile
push: true
tags: |
git.plabble.org/job79/kali:${{ github.ref_name }}
git.plabble.org/job79/kali:latest

View File

@@ -0,0 +1,34 @@
name: Build container
on:
push:
branches: ["main"]
paths: ["containers/kali/**", ".gitea/workflows/kali.yaml"]
pull_request:
branches: ["main"]
paths: ["containers/kali/**", ".gitea/workflows/kali.yaml"]
schedule:
- cron: "0 16 * * FRI"
jobs:
fedora-build:
runs-on: job-latest
steps:
- name: Clone repo
uses: actions/checkout@v4
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: git.plabble.org
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push kali container
uses: docker/build-push-action@v5
with:
context: ./containers/kali
file: ./containers/kali/Containerfile
push: true
tags: |
git.plabble.org/job79/kali:${{ github.ref_name }}
git.plabble.org/job79/kali:latest

View File

@@ -51,6 +51,12 @@ param_args() {
arg "-e HOST_HOME=$HOME" # Use to translate paths.
arg "-e DBUS_SESSION_BUS_ADDRESS='unix:path=/tmp/bus'"
;;
-x11)
arg "-e DISPLAY=$DISPLAY"
arg "-v /tmp/.X11-unix:/tmp/.X11-unix"
arg "-e XAUTHORITY=/run/user/1000/.Xauthority"
arg "-v $XAUTHORITY:/run/user/1000/.Xauthority:ro"
;;
*) # Use unknown arguments a podman arguments.
arg "$1" ;;
esac