gitea.nulo.in: Use NPM cache
This commit is contained in:
parent
010d1e5627
commit
9ee18bd50f
1 changed files with 2 additions and 1 deletions
|
@ -8,10 +8,11 @@ pipeline:
|
||||||
build:
|
build:
|
||||||
image: docker.io/alpine:3.16
|
image: docker.io/alpine:3.16
|
||||||
commands:
|
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/main" > /etc/apk/repositories
|
||||||
- echo "http://alpine.proxy.coso/alpine/v3.16/community" >> /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
|
- 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
|
- GOOS=linux GOARCH=amd64 LDFLAGS="-linkmode external -extldflags '-static' $LDFLAGS" TAGS="bindata sqlite sqlite_unlock_notify" make build
|
||||||
|
|
||||||
|
|
Reference in a new issue