From 17514f5855b85973dd982850ba4566c32701b837 Mon Sep 17 00:00:00 2001 From: Kaladaran Date: Wed, 12 Aug 2026 09:54:41 +0200 Subject: [PATCH] Add .gitea/workflows/test-dind.yaml --- .gitea/workflows/test-dind.yaml | 41 +++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .gitea/workflows/test-dind.yaml diff --git a/.gitea/workflows/test-dind.yaml b/.gitea/workflows/test-dind.yaml new file mode 100644 index 0000000..768db2a --- /dev/null +++ b/.gitea/workflows/test-dind.yaml @@ -0,0 +1,41 @@ +name: Test DinD Capabilities + +on: + push: + branches: [ main, master ] + workflow_dispatch: # Allows manual trigger from Gitea UI + +jobs: + test-dind: + runs-on: ubuntu-latest # Change to your runner tag if customized + + # If your runner uses docker-container execution mode without automatic DinD sidecars, + # you can uncomment the service below: + # services: + # docker: + # image: docker:dind + # privileged: true + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Verify Docker CLI Availability + run: | + docker version + docker info + + - name: Test Running a Container (Docker Pull & Run) + run: | + echo "Testing basic container execution..." + docker run --rm alpine:latest echo "DinD works: Container successfully executed!" + + - name: Test Building an Image + run: | + echo "Testing docker build..." + echo "FROM alpine:latest" > Dockerfile + echo "RUN echo 'Built inside DinD' > /test.txt" >> Dockerfile + echo "CMD cat /test.txt" >> Dockerfile + + docker build -t test-dind-image:local . + docker run --rm test-dind-image:local \ No newline at end of file