This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | docker | final | major | `24.0.7-dind` -> `25.0.0-dind` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNDAuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4xNDAuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=--> Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/126 Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de> Co-committed-by: woodpecker-bot <woodpecker-bot@obermui.de>
26 lines
762 B
Text
26 lines
762 B
Text
ARG BUILDX_VERSION=0.12.1
|
|
ARG DOCKER_VERSION=25.0.0-dind
|
|
ARG GOLANG_VERSION=1.21
|
|
|
|
FROM --platform=$BUILDPLATFORM golang:${GOLANG_VERSION} as build
|
|
|
|
COPY . /src
|
|
WORKDIR /src
|
|
|
|
ARG TARGETOS TARGETARCH
|
|
RUN --mount=type=cache,target=/root/.cache/go-build \
|
|
--mount=type=cache,target=/go/pkg \
|
|
make build
|
|
|
|
FROM docker/buildx-bin:${BUILDX_VERSION} as buildx-bin
|
|
FROM docker:${DOCKER_VERSION}
|
|
|
|
RUN apk --update --no-cache add coredns git
|
|
|
|
COPY --from=build /src/Corefile /etc/coredns/Corefile
|
|
COPY --from=buildx-bin /buildx /usr/libexec/docker/cli-plugins/docker-buildx
|
|
COPY --from=build /src/plugin-docker-buildx /bin/plugin-docker-buildx
|
|
|
|
ENV DOCKER_HOST=unix:///var/run/docker.sock
|
|
|
|
ENTRYPOINT ["/usr/local/bin/dockerd-entrypoint.sh", "plugin-docker-buildx"]
|