From 9ee18bd50f0d503863dc383c3a2d74f9cfd9e509 Mon Sep 17 00:00:00 2001 From: Nulo Date: Fri, 9 Sep 2022 17:23:47 -0300 Subject: [PATCH] gitea.nulo.in: Use NPM cache --- .woodpecker.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 80d2112fe..c16de708a 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -8,10 +8,11 @@ pipeline: build: image: docker.io/alpine:3.16 commands: - - echo "172.17.0.1 alpine.proxy.coso" >> /etc/hosts + - echo "172.17.0.1 alpine.proxy.coso npm.proxy.coso" >> /etc/hosts - echo "http://alpine.proxy.coso/alpine/v3.16/main" > /etc/apk/repositories - echo "http://alpine.proxy.coso/alpine/v3.16/community" >> /etc/apk/repositories - apk add git nodejs npm go make rsync openssh-client-default + - npm set registry http://npm.proxy.coso - GOOS=linux GOARCH=amd64 LDFLAGS="-linkmode external -extldflags '-static' $LDFLAGS" TAGS="bindata sqlite sqlite_unlock_notify" make build