mirror of
https://github.com/licsber/Dockerfile.git
synced 2024-09-19 18:20:26 +08:00
add go proxy by default.
This commit is contained in:
parent
3d5c8bdbbd
commit
7c02588107
@ -35,7 +35,6 @@ jobs:
|
||||
echo "image=$IMAGE" >> $GITHUB_OUTPUT
|
||||
|
||||
$BUILD_DIR = Split-Path -Parent "${{ env.DOCKERFILE }}"
|
||||
$env:GOPROXY = 'https://goproxy.io,direct'
|
||||
docker build -t "${IMAGE}:${TAG}" --file ${{ env.DOCKERFILE }} $BUILD_DIR
|
||||
|
||||
- name: Push Image
|
||||
|
@ -13,6 +13,7 @@ RUN ./scripts/feeds update -a && \
|
||||
RUN make defconfig && \
|
||||
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 && \
|
||||
echo $?
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user