ci(build): pull golang base image from kargadan mirror
mirror.soroushasadi.com serves only cached images (node:20 resolved, golang:1.25 was 'not found' — too new to be cached, upstream can't back-fill). Point the Go services' golang:1.25-alpine base at mirror.kargadan.ir per infra owner; alpine/ busybox/node/postgres/minio stay on soroushasadi (cached). GOPROXY already kargadan.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM mirror.soroushasadi.com/golang:1.25-alpine AS build
|
FROM mirror.kargadan.ir/golang:1.25-alpine AS build
|
||||||
ENV GOPROXY=https://mirror.kargadan.ir/repository/go-group/ GOSUMDB=off
|
ENV GOPROXY=https://mirror.kargadan.ir/repository/go-group/ GOSUMDB=off
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
# Dependencies are vendored — build fully offline (proxy.golang.org is geo-blocked from some regions)
|
# Dependencies are vendored — build fully offline (proxy.golang.org is geo-blocked from some regions)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM mirror.soroushasadi.com/golang:1.25-alpine AS builder
|
FROM mirror.kargadan.ir/golang:1.25-alpine AS builder
|
||||||
# Go module/toolchain fetches via the kargadan Nexus (proxy.golang.org geo-blocked).
|
# Go module/toolchain fetches via the kargadan Nexus (proxy.golang.org geo-blocked).
|
||||||
ENV GOPROXY=https://mirror.kargadan.ir/repository/go-group/ GOSUMDB=off
|
ENV GOPROXY=https://mirror.kargadan.ir/repository/go-group/ GOSUMDB=off
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM mirror.soroushasadi.com/golang:1.25-alpine AS builder
|
FROM mirror.kargadan.ir/golang:1.25-alpine AS builder
|
||||||
ENV GOPROXY=https://mirror.kargadan.ir/repository/go-group/ GOSUMDB=off
|
ENV GOPROXY=https://mirror.kargadan.ir/repository/go-group/ GOSUMDB=off
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
# Dependencies are vendored — build fully offline (proxy.golang.org is geo-blocked from some regions)
|
# Dependencies are vendored — build fully offline (proxy.golang.org is geo-blocked from some regions)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM mirror.soroushasadi.com/golang:1.25-alpine AS builder
|
FROM mirror.kargadan.ir/golang:1.25-alpine AS builder
|
||||||
ENV GOPROXY=https://mirror.kargadan.ir/repository/go-group/ GOSUMDB=off
|
ENV GOPROXY=https://mirror.kargadan.ir/repository/go-group/ GOSUMDB=off
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
# Dependencies are vendored — build fully offline (proxy.golang.org is geo-blocked from some regions)
|
# Dependencies are vendored — build fully offline (proxy.golang.org is geo-blocked from some regions)
|
||||||
|
|||||||
Reference in New Issue
Block a user