Updated Dockerfile and Woodpecker pipeline to use harbor.maximumdirect.net proxy cache for upstream images.
This commit is contained in:
@@ -4,7 +4,7 @@ when:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build-and-push-image
|
- name: build-and-push-image
|
||||||
image: https://harbor.maximumdirect.net/dockerhub-proxy/woodpeckerci/plugin-kaniko
|
image: harbor.maximumdirect.net/proxy-dockerhub/woodpeckerci/plugin-kaniko
|
||||||
settings:
|
settings:
|
||||||
registry: harbor.maximumdirect.net
|
registry: harbor.maximumdirect.net
|
||||||
repo: build/weatherfeeder
|
repo: build/weatherfeeder
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ ARG GO_VERSION=1.25
|
|||||||
############################
|
############################
|
||||||
# Build stage
|
# Build stage
|
||||||
############################
|
############################
|
||||||
FROM golang:${GO_VERSION}-bookworm AS build
|
FROM harbor.maximumdirect.net/proxy-dockerhub/golang:${GO_VERSION}-bookworm AS build
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
|
|||||||
############################
|
############################
|
||||||
# Runtime stage
|
# Runtime stage
|
||||||
############################
|
############################
|
||||||
FROM debian:bookworm-slim AS runtime
|
FROM harbor.maximumdirect.net/proxy-dockerhub/debian:bookworm-slim AS runtime
|
||||||
|
|
||||||
# Install runtime necessities
|
# Install runtime necessities
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
|
|||||||
Reference in New Issue
Block a user