diff --git a/.woodpecker.yml b/.woodpecker.yml index 837575d..e1d4baa 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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 diff --git a/tooling/Containerfile b/tooling/Containerfile new file mode 100644 index 0000000..1758345 --- /dev/null +++ b/tooling/Containerfile @@ -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 \ No newline at end of file