feat: debian
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
nyyu 2024-12-26 19:59:35 +01:00
parent 3749fa2cba
commit 3c96eae178
2 changed files with 25 additions and 1 deletions

View file

@ -1,5 +1,5 @@
steps: steps:
docker: docker-alpine:
image: woodpeckerci/plugin-kaniko image: woodpeckerci/plugin-kaniko
pull: true pull: true
settings: settings:
@ -13,3 +13,18 @@ steps:
when: when:
branch: ${CI_REPO_DEFAULT_BRANCH} branch: ${CI_REPO_DEFAULT_BRANCH}
event: [push, manual, tag] event: [push, manual, tag]
docker-debian:
image: woodpeckerci/plugin-kaniko
pull: true
settings:
username:
from_secret: registry_username
password:
from_secret: registry_password
dockerfile: Dockerfile.debian
repo: ${CI_REPO_OWNER}/numcpu_override
registry: ${DOCKER_REGISTRY}
tags: debian
when:
branch: ${CI_REPO_DEFAULT_BRANCH}
event: [push, manual, tag]

9
Dockerfile.debian Normal file
View file

@ -0,0 +1,9 @@
FROM debian:stable
COPY . .
RUN apt update && apt install -y gcc && \
gcc -shared -fPIC -Wall -Wextra -Werror numcpu_override.c -o numcpu_override.so -ldl
FROM alpine:3.21
COPY /copy.sh /
COPY --from=0 numcpu_override.so /
ENTRYPOINT ["/copy.sh"]