This commit is contained in:
parent
3749fa2cba
commit
3c96eae178
2 changed files with 25 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
steps:
|
||||
docker:
|
||||
docker-alpine:
|
||||
image: woodpeckerci/plugin-kaniko
|
||||
pull: true
|
||||
settings:
|
||||
|
@ -13,3 +13,18 @@ steps:
|
|||
when:
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
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
9
Dockerfile.debian
Normal 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"]
|
Loading…
Add table
Reference in a new issue