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:
|
pipeline:
|
||||||
build:
|
build-image:
|
||||||
image: docker.io/alpine:3.17
|
image: r.j3ss.co/img:latest
|
||||||
commands:
|
commands:
|
||||||
- |
|
- echo $REGISTRY_SECRET | img login --username Nulo --password-stdin gitea.nulo.in
|
||||||
echo "172.17.0.1 host.containers.internal" >> /etc/hosts
|
- img build -t gitea.nulo.in/nulo/sitio-build:latest tooling/Containerfile
|
||||||
echo "http://host.containers.internal/alpine/alpine/v3.17/main
|
- img push gitea.nulo.in/nulo/sitio-build:latest
|
||||||
http://host.containers.internal/alpine/alpine/v3.17/community" > /etc/apk/repositories
|
secrets: [REGISTRY_SECRET]
|
||||||
|
when:
|
||||||
- apk add nodejs icu-data-full npm lua5.1
|
path:
|
||||||
|
include: ["tooling/*", ".woodpecker.yml"]
|
||||||
- |
|
|
||||||
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
|
|
||||||
|
|
||||||
|
build:
|
||||||
|
image: gitea.nulo.in/nulo/sitio-build:latest
|
||||||
|
commands:
|
||||||
- pnpm install
|
- pnpm install
|
||||||
- ./tool refresh_feeds
|
- ./tool refresh_feeds
|
||||||
- ./tool check
|
- ./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