mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-10-31 22:38:49 +00:00
e1e1e8b137
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | docker.io/golang | | minor | `1.21.6` -> `1.22.0` | | docker.io/golang | final | minor | `1.21` -> `1.22` | | docker.io/golang | stage | minor | `1.21-alpine3.18` -> `1.22-alpine3.18` | | docker.io/golang | stage | minor | `1.21` -> `1.22` | --- ### Configuration 📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - "before 4am" (UTC). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/woodpecker-ci/woodpecker). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
19 lines
573 B
Docker
19 lines
573 B
Docker
FROM --platform=$BUILDPLATFORM docker.io/golang:1.22 AS build
|
|
|
|
WORKDIR /src
|
|
COPY . .
|
|
ARG TARGETOS TARGETARCH CI_COMMIT_SHA CI_COMMIT_TAG CI_COMMIT_BRANCH
|
|
RUN --mount=type=cache,target=/root/.cache/go-build \
|
|
--mount=type=cache,target=/go/pkg \
|
|
make build-cli
|
|
|
|
FROM scratch
|
|
ENV GODEBUG=netdns=go
|
|
|
|
# copy certs from build image
|
|
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
# copy cli binary
|
|
COPY --from=build /src/dist/woodpecker-cli /bin/
|
|
|
|
HEALTHCHECK CMD ["/bin/woodpecker-cli", "ping"]
|
|
ENTRYPOINT ["/bin/woodpecker-cli"]
|