mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-29 11:50:37 +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>
22 lines
663 B
Docker
22 lines
663 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-agent
|
|
RUN mkdir -p /etc/woodpecker
|
|
|
|
FROM scratch
|
|
ENV GODEBUG=netdns=go
|
|
EXPOSE 3000
|
|
|
|
# copy certs from build image
|
|
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
# copy agent binary
|
|
COPY --from=build /src/dist/woodpecker-agent /bin/
|
|
COPY --from=build /etc/woodpecker /etc
|
|
|
|
HEALTHCHECK CMD ["/bin/woodpecker-agent", "ping"]
|
|
ENTRYPOINT ["/bin/woodpecker-agent"]
|