All checks were successful
Build and push the container / build-and-upload (push) Successful in 7m40s
38 lines
1.2 KiB
Docker
38 lines
1.2 KiB
Docker
FROM git.dzuchun.ing/actions/alpine AS builder
|
|
|
|
ARG NODE_VERSION=24.13.0-r1
|
|
ARG RENOVATE_VERSION=43
|
|
|
|
ENV PATH="/root/.yarn/bin:/root/.cargo/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
|
|
# update package registry, install deps
|
|
RUN apk update; apk add --no-cache npm; apk add --no-cache curl; apk cache clean
|
|
|
|
# install renovate
|
|
RUN npm install -g renovate@$RENOVATE_VERSION; npm cache clean --force
|
|
|
|
# remove npm, install node
|
|
RUN apk del npm; apk del nodejs; apk add --no-cache nodejs=$NODE_VERSION; apk cache clean;
|
|
|
|
# install Rust
|
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh; \
|
|
chmod +x rustup.sh; \
|
|
./rustup.sh -c cargo --profile minimal -y;
|
|
|
|
# copy renovate config
|
|
COPY renovate.js /
|
|
|
|
# separate step to remove layers
|
|
FROM git.dzuchun.ing/actions/alpine
|
|
|
|
COPY --from=builder . .
|
|
|
|
# environment
|
|
ENV PATH="/root/.yarn/bin:/root/.cargo/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
ENV RENOVATE_CONFIG_FILE='/renovate.js'
|
|
ENV RENOVATE_PLATFORM=forgejo
|
|
ENV RENOVATE_ENDPOINT=https://git.dzuchun.ing/
|
|
ENV LOG_LEVEL=debug
|
|
|
|
# labels
|
|
LABEL org.opencontainers.image.source=https://git.dzuchun.ing/actions/renovate
|