diff --git a/.gitea/actions/docker-build/action.yml b/.gitea/actions/docker-build/action.yml index a7c2d1c..e791801 100644 --- a/.gitea/actions/docker-build/action.yml +++ b/.gitea/actions/docker-build/action.yml @@ -1,5 +1,5 @@ name: Docker Build + Push -description: Build and push Docker images for Gitea Actions using the docker daemon at DOCKER_HOST +description: Build and push Docker images for Gitea Actions via the job-mounted Docker socket author: eric inputs: @@ -44,9 +44,6 @@ outputs: runs: using: composite - env: - DOCKER_HOST: tcp://docker.local:2375 - DOCKER_BUILDKIT: "1" steps: - name: Compute metadata @@ -77,6 +74,8 @@ runs: - name: Log in to Docker registry shell: bash + env: + DOCKER_BUILDKIT: "1" run: | if [ -n "${{ inputs.registry }}" ] && [ -n "${{ inputs.registry-password }}" ]; then echo "${{ inputs.registry-password }}" | docker login ${{ inputs.registry }} -u ${{ inputs.registry-username }} --password-stdin @@ -85,6 +84,8 @@ runs: - name: Build image id: build shell: bash + env: + DOCKER_BUILDKIT: "1" run: | BUILD_ARGS_FLAG="" if [ -n "${{ inputs.build-args }}" ]; then diff --git a/README.md b/README.md index 870f032..2c0b820 100644 --- a/README.md +++ b/README.md @@ -53,4 +53,4 @@ jobs: - **Multi-platform** builds via QEMU (if platforms != linux/amd64) - **Layer caching** via local buildx cache - **Git metadata** — auto-adds `date-SHA` tag + git tag if on a tag ref -- **`DOCKER_HOST`** — auto-configured for Gitea Actions (`tcp://docker.local:2375`) +- Uses the job-mounted Docker socket (`unix:///var/run/docker.sock`) provided by the Gitea runner