1
0
mirror of https://codeberg.org/crowci/crow.git synced 2025-08-06 09:22:46 +03:00
Files
crow/docker/Dockerfile.cli.alpine.multiarch.rootless
crowci-bot ebb85526c5 chore(deps): update docker.io/golang docker tag to v1.24 (#36)
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>
2025-02-14 09:15:18 +00:00

29 lines
689 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 docker.io/alpine:3.21
WORKDIR /woodpecker
RUN apk add -U --no-cache ca-certificates && \
adduser -u 1000 -g 1000 -D woodpecker
ENV GODEBUG=netdns=go
ENV WOODPECKER_DISABLE_UPDATE_CHECK=true
COPY --from=build /src/dist/crow-cli /bin/
USER woodpecker
HEALTHCHECK CMD ["/bin/crow-cli", "ping"]
ENTRYPOINT ["/bin/crow-cli"]