Iperf3 Test
All checks were successful
Docker Build and Publish / build (push) Successful in 38s

This commit is contained in:
2025-07-07 19:46:00 +05:30
parent 3f917ae793
commit b12506c03a
2 changed files with 9 additions and 14 deletions

View File

@@ -5,9 +5,6 @@ on:
push:
branches: [ "main" ]
env:
DOCKERHUB_REPO: ghcr.io/ryuupendragon/caddy-test
jobs:
build:
runs-on: ubuntu-latest
@@ -15,11 +12,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Parse Caddy version
id: version
run: echo "VERSION=$(grep -Eo 'caddy:[0-9]+\.[0-9]+\.[0-9]+$' Dockerfile | cut -d ':' -f2)" >> $GITHUB_ENV
-
name: Set up QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
@@ -33,4 +26,4 @@ jobs:
password: ${{ secrets.GH_TOKEN }}
- name: Build Test
run: docker buildx build -t ghcr.io/ryuupendragon/caddy-test:latest --platform linux/arm64,linux/amd64 --push .
run: docker buildx build -t ghcr.io/ryuupendragon/iperf3-test:latest --platform linux/arm64 --push .

View File

@@ -1,8 +1,10 @@
FROM caddy:2.10.0-builder AS builder
FROM debian:bookworm-slim
RUN xcaddy build \
--with github.com/hslatman/caddy-crowdsec-bouncer/http
RUN apt-get update \
&& apt-get install -y iperf3 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
FROM caddy:2.10.0
EXPOSE 5201
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
ENTRYPOINT ["iperf3"]