mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-22 09:51:01 +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>
21 lines
696 B
Docker
21 lines
696 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
|
|
|
|
FROM docker.io/alpine:3.19
|
|
# renovate: datasource=repology depName=alpine_3_18/ca-certificates versioning=loose
|
|
ENV CA_CERTIFICATES_VERSION="20230506-r0"
|
|
RUN apk add -U --no-cache ca-certificates=${CA_CERTIFICATES_VERSION}
|
|
ENV GODEBUG=netdns=go
|
|
EXPOSE 3000
|
|
|
|
COPY --from=build /src/dist/woodpecker-agent /bin/
|
|
RUN mkdir -p /etc/woodpecker
|
|
|
|
HEALTHCHECK CMD ["/bin/woodpecker-agent", "ping"]
|
|
ENTRYPOINT ["/bin/woodpecker-agent"]
|