ci: usar contenedor
This commit is contained in:
parent
040f16d3bf
commit
937f0f12f0
2 changed files with 21 additions and 17 deletions
|
@ -1,23 +1,18 @@
|
|||
pipeline:
|
||||
build:
|
||||
image: docker.io/alpine:3.17
|
||||
build-image:
|
||||
image: r.j3ss.co/img:latest
|
||||
commands:
|
||||
- |
|
||||
echo "172.17.0.1 host.containers.internal" >> /etc/hosts
|
||||
echo "http://host.containers.internal/alpine/alpine/v3.17/main
|
||||
http://host.containers.internal/alpine/alpine/v3.17/community" > /etc/apk/repositories
|
||||
|
||||
- apk add nodejs icu-data-full npm lua5.1
|
||||
|
||||
- |
|
||||
npm config set -g registry http://host.containers.internal/npm
|
||||
npm install -g pnpm
|
||||
|
||||
# https://gitea.nulo.in/Nulo/openring/releases/tag/1.0.1-nulo-sitio-2
|
||||
- |
|
||||
wget -nv -O /bin/openring https://gitea.nulo.in/attachments/3ddb2799-3af7-4239-a7fd-9d31670aefb8
|
||||
chmod +x /bin/openring
|
||||
- echo $REGISTRY_SECRET | img login --username Nulo --password-stdin gitea.nulo.in
|
||||
- img build -t gitea.nulo.in/nulo/sitio-build:latest tooling/Containerfile
|
||||
- img push gitea.nulo.in/nulo/sitio-build:latest
|
||||
secrets: [REGISTRY_SECRET]
|
||||
when:
|
||||
path:
|
||||
include: ["tooling/*", ".woodpecker.yml"]
|
||||
|
||||
build:
|
||||
image: gitea.nulo.in/nulo/sitio-build:latest
|
||||
commands:
|
||||
- pnpm install
|
||||
- ./tool refresh_feeds
|
||||
- ./tool check
|
||||
|
|
9
tooling/Containerfile
Normal file
9
tooling/Containerfile
Normal file
|
@ -0,0 +1,9 @@
|
|||
FROM docker.io/alpine:3.17
|
||||
|
||||
RUN apk add --no-cache nodejs icu-data-all npm lua5.1
|
||||
|
||||
# https://gitea.nulo.in/Nulo/openring/releases/tag/1.0.1-nulo-sitio-2
|
||||
RUN wget -nv -O /bin/openring https://gitea.nulo.in/attachments/3ddb2799-3af7-4239-a7fd-9d31670aefb8 && \
|
||||
chmod +x /bin/openring
|
||||
|
||||
RUN npm install --global pnpm
|
Reference in a new issue