first commit
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful

This commit is contained in:
zhbaor 2023-12-12 16:30:48 +08:00
commit 1551822765
2 changed files with 28 additions and 0 deletions

13
.woodpecker.yml Normal file
View file

@ -0,0 +1,13 @@
steps:
build:
image: git.zhaozuohong.vip/zhao/docker-docker
commands:
- docker build . --rm -t git.zhaozuohong.vip/zhao/docker-hugo-ext
- docker login -u $REGISTRY_USERNAME -p $REGISTRY_PASSWORD git.zhaozuohong.vip
- docker push git.zhaozuohong.vip/zhao/docker-hugo-ext
- docker rmi git.zhaozuohong.vip/zhao/docker-hugo-ext
volumes:
- /var/run/docker.sock:/var/run/docker.sock
secrets:
- registry_username
- registry_password

15
Dockerfile Normal file
View file

@ -0,0 +1,15 @@
FROM almalinux:9 as installer
RUN dnf install -y yum-utils
RUN yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
RUN dnf install \
--installroot /fakeroot \
--releasever 9 \
--setopt install_weak_deps=false \
--nodocs -y \
git docker-ce-cli docker-buildx-plugin \
&& dnf clean all --installroot /fakeroot
FROM scratch
COPY --from=installer /fakeroot /