mirror of
https://codeberg.org/crowci/crow.git
synced 2025-08-04 22:02:15 +03:00
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | docker.io/golang | final | minor | `1.23-alpine3.21` -> `1.24-alpine3.21` | | docker.io/golang | stage | minor | `1.23-alpine3.21` -> `1.24-alpine3.21` | --- ### Configuration 📅 **Schedule**: Branch creation - "* * * * 0,6" (UTC), Automerge - "* 0-3 * * *" (UTC). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzAuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE3MC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmN5IPCfk6bvuI8iXX0=--> Reviewed-on: https://codeberg.org/crowci/crow/pulls/36 Co-authored-by: crowci-bot <admin@crowci.dev> Co-committed-by: crowci-bot <admin@crowci.dev>
30 lines
804 B
Docker
30 lines
804 B
Docker
FROM --platform=$BUILDPLATFORM docker.io/golang:1.24-alpine3.21 AS build
|
|
|
|
WORKDIR /src
|
|
COPY . .
|
|
ARG TARGETOS TARGETARCH CI_COMMIT_SHA CI_COMMIT_TAG CI_COMMIT_BRANCH
|
|
ENV GOOS=$TARGETOS
|
|
ENV GOARCH=$TARGETARCH
|
|
RUN apk add --no-cache -q just git
|
|
RUN --mount=type=cache,target=/root/.cache/go-build \
|
|
--mount=type=cache,target=/go/pkg \
|
|
just build-cli
|
|
|
|
FROM scratch
|
|
WORKDIR /woodpecker
|
|
|
|
ENV GODEBUG=netdns=go
|
|
ENV WOODPECKER_DISABLE_UPDATE_CHECK=true
|
|
|
|
# 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/crow-cli /bin/
|
|
COPY --from=build /etc/passwd /etc/passwd
|
|
COPY --from=build /etc/group /etc/group
|
|
|
|
USER woodpecker
|
|
|
|
HEALTHCHECK CMD ["/bin/crow-cli", "ping"]
|
|
ENTRYPOINT ["/bin/crow-cli"]
|