add go proxy by default.

This commit is contained in:
licsber 2024-03-12 08:06:33 +08:00
parent 3d5c8bdbbd
commit 7c02588107
2 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,6 @@ jobs:
echo "image=$IMAGE" >> $GITHUB_OUTPUT echo "image=$IMAGE" >> $GITHUB_OUTPUT
$BUILD_DIR = Split-Path -Parent "${{ env.DOCKERFILE }}" $BUILD_DIR = Split-Path -Parent "${{ env.DOCKERFILE }}"
$env:GOPROXY = 'https://goproxy.io,direct'
docker build -t "${IMAGE}:${TAG}" --file ${{ env.DOCKERFILE }} $BUILD_DIR docker build -t "${IMAGE}:${TAG}" --file ${{ env.DOCKERFILE }} $BUILD_DIR
- name: Push Image - name: Push Image

View File

@ -13,6 +13,7 @@ RUN ./scripts/feeds update -a && \
RUN make defconfig && \ RUN make defconfig && \
make download -j8 make download -j8
ENV GOPROXY='https://goproxy.io,direct'
RUN if [ `nproc` -le 4 ]; then make -j3 || make V=s; else make -j `nproc` || make V=s; fi && \ RUN if [ `nproc` -le 4 ]; then make -j3 || make V=s; else make -j `nproc` || make V=s; fi && \
echo $? echo $?